AGPieChart / AGPieChartObj
Synopsis
AGGeometryPrimitive AGPieChart
{
geometry = {0,0};
AGFloat angleInterval[2] = {0.0,360.0};
AGColor arrowColor = "antibackground";
AGColor colors[] ={"red","green","cyan",
"orange","purple", "yellow",
"brown","turquoise",
"magenta"};
AGDistance diameter = 80.0;
AGDistance explodeOffset = 5.0;
AGColor frameColor = "antibackground";
AGDistance frameWidth = 0.25;
AGColor labelBoxFillColor = "background";
AGColor labelBoxFrameColor = "antibackground";
AGDistance labelBoxFrameWidth = 0.25;
AGColor labelColor = "antibackground";
AGPieLabelContentEnum labelContent = "value";
AGInt labelDecimals;
AGFont labelFont = "Helvetica";
AGDistance labelHeight = 2.7;
AGPieLabelJustificationEnum labelJustification = "left";
AGPieLabelPositionEnum labelPosition = "circular";
AGString labelPrefix;
AGString labelStrings[];
AGString labelSuffix;
AGFloat+IPort2 values[] = {3,2,1.573,6.33,-2.5};
};Description
AGPieChart produces a pie chart of up to 30 sectors. You can label the individual pie sectors with actual values and/or percent-plus text labels.
Subobjects
Defines how much of a full circle is used for an entire pie chart. This value is measured in degrees counterclockwise, where 0 degrees is at 3 o'clock.
An array of colors that determine the colors of individual pie sectors. If you supply fewer colors than data values, the colors are repeated cyclically.
The offset of exploded pie sectors, given from the center of the pie chart to the corner of the sectors. A pie sector is exploded if its value is negative.
The horizontal justification of the labels inside the label boxes. The legal values are "right", "center", and "left".
"circular" places label boxes that do not fit inside the pie sectors circularly around the pie chart.
"aligned" places label boxes that do not fit inside the pie sectors outside the pie chart and aligns them vertically.
An array of strings that are used as label text inside the label boxes. If you supply fewer strings than there are pie sectors, the excess pie sectors do not include label text in the label boxes.
An array of floating-point values that determine the size of each pie sector. Only the absolute values are used; any sector whose value is negative is drawn exploded. If you supply more than 30 values, only the first 30 values are used to produce the pie chart.
Example
Libraries.Examples.Annotation_Graphing.piechart
File
See Also Related Modules