How can I show the values on PIECharts.
i did it for bar charts . i used
BarRenderer renderer = (BarRenderer) plot.getRenderer();
renderer.setItemLabelsVisible(true);
but for pie charts i don't know what to do
How can I show the values on PIECharts?
-
- Posts: 8
- Joined: Mon Jul 28, 2003 5:07 pm
Hi,
try with
I hope this can help you.
Regards,
Patrick
try with
Code: Select all
PiePlot plot = ...;
...
plot.setShowSeriesLabels(true);
// Then you have sever choices:
plot.setSectionLabelType(PiePlot.NAME_LABELS); // show the name as label
//plot.setSectionLabelType(PiePlot.PERCENT_LABELS); // show the values as %
plot.setSectionLabelType(PiePlot.VALUE_LABELS); // show the values
plot.setSectionLabelType(PiePlot.NAME_AND_PERCENT_LABELS); // show name and %
plot.setSectionLabelType(PiePlot.NAME_AND_VALUE_LABELS); // show name and values
plot.setSectionLabelType(PiePlot.VALUE_AND_PERCENT_LABELS); // show values and %
Regards,
Patrick