The DojoPieChart widget creates pie charts by using one
or more PieChartData records. Each record describes a section.
Fields
- data
- A list of PieChartData records that contain data for the pie chart.
Each record has the following fields:
- color
- The color that is associated with the section of the chart that
you are defining
- fontColor
- The color of the font for the text label
- text
- The text that is to be placed inside the section
- y
- The numeric value that was used to calculate the amount of space
this data record occupies in the chart related to the other data records.
- fontColor
- The color of the pie chart. It can be blue, red, cyan, green,
orange, or purple.
- height
- The height of the pie chart, in pixels
- labelOffSet
- The offset of the labels from the center. For a radius of 100,
a value of value of 40 is optimal.
- radius
- The radius of the pie chart, in pixels. A value of 100 is optimal.
- width
- The total width of the pie chart, in pixels
Other supported fields and functions are described in the following
topics in the EGL Programmer’s Guide: “Rich UI widget fields” and
”Rich UI widget functions.”
Use of this widget requires the following statement:
import dojo.widgets.DojoPieChart;