pie chart label position

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
papiasato
Posts: 4
Joined: Mon Dec 10, 2007 8:35 am

pie chart label position

Post by papiasato » Wed Feb 27, 2008 9:50 am

hi, how do i adjust the position of the labels for the pie chart slices?
when i remove the link strokes, the label position is nowhere near the section of the pie it represents. thus, the need to adjust the label position to be right above the section.

appreciate any help given!

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 Feb 28, 2008 4:22 am

You could try calling piePlot.setSimpleLabels(true). Otherwise, you're going to have to subclass PiePlot and write a lot of code to reposition the labels.
David Gilbert
JFreeChart Project Leader

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

papiasato
Posts: 4
Joined: Mon Dec 10, 2007 8:35 am

Post by papiasato » Thu Feb 28, 2008 8:52 am

Hi,

I tried to use simplelabel, however, the label is positioned inside the pie.

I used setSimpleLabelOffset, but still could not get the label to be displayed just outside of the respective pie sections.

please kindly assist. thank you!

papiasato
Posts: 4
Joined: Mon Dec 10, 2007 8:35 am

Post by papiasato » Mon Mar 03, 2008 2:12 am

Hi,

is this a bug with the offset method for pie labels or is this method not meant for setting the pie label position?

Locked