Label placement on pie charts
-
- Posts: 6
- Joined: Mon Apr 14, 2008 3:06 pm
Label placement on pie charts
are there any methods to control the label placement on pie charts? I'm finding that if my pie chart has a few small slices near the top or bottom that the labels will all be forced in a small area (one of the lower corners) and if the labels are large they are sometimes cut off the page.
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
To change the label placement, you need to customise or replace the PieLabelDistributor class.
In the 1.0.10 release (already overdue, hopefully out tomorrow) there are some fixes for the labels going off-screen, so hopefully that will improve things for you.
In the 1.0.10 release (already overdue, hopefully out tomorrow) there are some fixes for the labels going off-screen, so hopefully that will improve things for you.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

