Module pie_chart
Expand description
Interactive pie and donut charts.
The widget owns interaction geometry as well as painting, so pointer, keyboard/accessibility activation, tooltips and the rendered wedges always agree. Values may be updated without rebuilding the widget tree.
Its height comes from the space it is given: the donut and its legend are one unit, centred, the donut as large as the room allows. The legend and the tooltip state a share the same way (whole percent), a slice can add a detail column to the legend (its size), and the tooltip never covers the legend.
Structs§
- PieChart
- A responsive interactive pie/donut widget.
- PieSlice
- A stable, labelled radial datum. Negative and non-finite values are treated
as zero.
idsurvives sorting and updates and is returned on activation. - PieStyle
- Visual configuration shared by pies and donuts.