Widgets

PieChart

PieChart

PieChart control. Build it with the pie_chart helper.

Example

pie_chart(
  width: 240,
  height: 120,
  on_event: ->(event) {}
)

Properties

  • sections — Sets the sections property.
  • sections_space — Sets the sections space property.
  • center_space_radius — Center space radius.

Common layout and animation properties

  • width — Fixed width in logical pixels.
  • height — Fixed height in logical pixels.
  • tooltip — Text shown on hover/long-press.

Events

  • on_event — Fired on event.

Reference

  • Family: materials
  • Widget type: piechart
  • Helpers: pie_chart, piechart