Hi,
I would be grateful if anyone could tell me if it is possible to arrange the labels at the bottom of a pie chart and key code them - like with a bar chart. Or alternativly if there is any way to make the labels wrap on to another line.
I have a pie chart with long labels and this currently means the jpeg has to be really wide or the labels are cut off.
thanks in advance,
James Hart.
quick pie chart query
Re: quick pie chart query
Hi James,
If you create your pie chart using the ChartFactory class, you should notice there is a flag controlling whether or not you want a legend on the chart...set this to true.
Then you need to change the pie chart label type - there is a method in the PiePlot class that controls this: setSectionLabelType(int). You probably want NO_LABELS or PERCENT_LABELS.
Regards,
Dave Gilbert
If you create your pie chart using the ChartFactory class, you should notice there is a flag controlling whether or not you want a legend on the chart...set this to true.
Then you need to change the pie chart label type - there is a method in the PiePlot class that controls this: setSectionLabelType(int). You probably want NO_LABELS or PERCENT_LABELS.
Regards,
Dave Gilbert