A chart component for graphing an array of numeric data as a pie chart.
Note: the data parameter of the PieChart, like the other charts, is an array. It can be a simple array of Numbers where each number represents one slice of the pie. It can also be an array of objects. If objects are used, each object represents one slice of the pie and can contain three properties: - value: The numeric value to chart. - label: The label to display next to the slice. - color: The color to make the slice.
Constructor
new (?parent:DisplayObjectContainer, ?xpos:Float, ?ypos:Float, ?data:Array<Float>)
Constructor
Parameters:
parent | The parent DisplayObjectContainer on which to add this Label. |
---|---|
xpos | The x position to place this component. |
ypos | The y position to place this component. |
data | The array of numeric values or objects to graph. |