Details
-
Improvement
-
Resolution: Fixed
-
Major
-
6.0-rc-1
-
None
Description
For example if you wish to display the percentage in the label it's currently not possible.
My proposal is to add a new parameter named "pie_label_format" for that.
When this issue is fixed you'll be able to use:
{{chart type="pie" source="xdom" params="document:ActiveInstalls.VersionsData;range:B2-B.;series:columns;pie_label_format:{0} - {2}"/}}
See http://www.jfree.org/jfreechart/api/gjdoc/org/jfree/chart/labels/StandardPieSectionLabelGenerator.html to understand the format.
Technically this calls the following jfreechart API:
// Allow customizing the label to use String pieLabelFormat = parameters.get(PIE_LABEL_FORMAT_KEY); if (pieLabelFormat != null) { piePlot.setLabelGenerator( new StandardPieSectionLabelGenerator(pieLabelFormat, NumberFormat.getNumberInstance(), NumberFormat.getPercentInstance())); }