Basic example
Syntax
Drawing a pie chart is simple:- Start with
piekeyword - Optionally add
showDatato display values - Optionally add
titlewith a string - Add data pairs:
"label" : value
Pie chart values must be positive numbers greater than zero. Negative values are not allowed and will result in an error.
With data values
Show actual data values after legend text:Advanced configuration
Customize appearance with configuration:Configuration parameters
Configuration parameters
| Parameter | Description | Default |
|---|---|---|
textPosition | Axial position of labels (0.0 at center to 1.0 at edge) | 0.75 |