Hi All,
I have a requirement where I want to show the legends of a Pie chart Selectively. i.e, if my Pie chart has 10 sections, I want to show only the first 5 legends. Is that Possible. If yes, please guide me.
Thanks in advance,
Regards,
Piyush
Search found 4 matches
- Mon May 29, 2006 4:01 pm
- Forum: JFreeChart
- Topic: Selectively displaying the legends in Pie charts
- Replies: 1
- Views: 2394
- Sun May 07, 2006 4:30 pm
- Forum: JFreeChart
- Topic: Pie chart Legend format change
- Replies: 5
- Views: 8792
Hi All, I found out how to do that. It can be done using pieplot.setLegendLabelGenerator(new StandardPieSectionLabelGenerator("{0}")); . Now I'm facing another problem. If the legend name of any section is too long, then I want to crop it off after some size. Say if my legend name is No of Users in ...
- Sun May 07, 2006 2:42 pm
- Forum: JFreeChart
- Topic: Pie chart Legend format change
- Replies: 5
- Views: 8792
Pie chart Legend format change
Hi all, I have a customization to be done in the legends being generated (below the chart) for the Pie charts. I want only the name of the category to be displayed and not the name = value pattern as it currently exists. If I try new StandardPieSectionLabelGenerator("{1}), it only changes for the la...
- Sat Jul 02, 2005 9:33 pm
- Forum: JFreeChart
- Topic: Labels in 3D bar chart
- Replies: 4
- Views: 5260