Leader Lines for Pie Charts
HTML Chart Control
Leader Lines for Pie Charts
When the chart panel is small, add-in managers may want to optimize the use of chart screen space.
-
They can use the
<dataAxis>
optionlabelPosition="insideWithCallout"
which draws the label inside the pie, provided that it fits, or as a callout if it does not fit. -
They can set
labelPosition="none"
to not display any labels.
Set the callout gap value, which will define how much space, in pixels, to insert between the edge of the pie and the data labels when rendering callouts. The default is value is 10.
AXVW:
Add a
<dataAxis>
parameter "
calloutGap={a_number}
".
Java Script:
chartPanel.setCalloutGap(gapNumber);
Define the size threshold, expressed in points, below which inside data labels are considered illegible. Below this threshold, data labels are either removed entirely or turned into callouts based upon the setting of the series
labelPosition
property. The default is 9.
AXVW:
Add a
<dataAxis>
parameter
"insideLabelSizeLimit={a_number}
".
Java Script:
chartPanel.setInsideLabelSizeLimit(sizeLimit);
Note:
These Java Script functions can be called after the chart is built.
Example:
http://localhost:8080/archibus/schema/ab-products/solutions/parts/chart/ab-chart-pie-dynamic-properties.axvw
http://localhost:8080/archibus/schema/ab-products/solutions/parts/chart/ab-chart-improve-calloutgap.axvw