How can I make the pie chart section labels to be positioned adjacent to the section along the circumference of the pie without the label link and the label border showing ?
Do i have to sub-class PiePlot3D and override its draw() method in order to achieve this ?
Thanks,
Vijoy
Pie chart section label position
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Yes, you'll need to subclass. The original PiePlot implementation worked in the way you described, but it resulted in a lot of complaints about labels overlapping. The new code does a better (but not perfect) job of avoiding overlapping labels.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


Pie/Ring chart label links are too long.
How can I make the pie/ring chart section label links to be shorter? I tried changing labelGap and labelLinkMargin attributes of the PiePlot/RingPlot but the changes did not have any effect on the link length. Right now the label links on my pie/ring chart inside JSP are too long and some of the labels are cropped because of that.
Thanks,
Arkady.
Thanks,
Arkady.
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
The labelGap setting should make some difference, but it is already quite a small gap (5% of the plot width). Can you post a screenshot?
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


Pie/Ring chart label links are too long.
Thanks, David. I think I figured out what the problem was. It's a combination of interiorGap and maximumLabelWidth settings.david.gilbert wrote:The labelGap setting should make some difference, but it is already quite a small gap (5% of the plot width). Can you post a screenshot?
Thanks again.