Label placement on pie charts

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
1337rooster
Posts: 6
Joined: Mon Apr 14, 2008 3:06 pm

Label placement on pie charts

Post by 1337rooster » Thu Apr 17, 2008 2:08 pm

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.

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Thu Apr 17, 2008 4:23 pm

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.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Andres
Posts: 1
Joined: Fri May 16, 2008 9:19 am

Post by Andres » Fri May 16, 2008 9:24 am

How can be done the workarround of this problem using PieLabelDistributor?

When is going to be available the 1.0.10 version?.

Thanks.

Locked