How do I set the label position in a pie chart?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
DavidThi808
Posts: 106
Joined: Fri May 27, 2005 7:44 pm
Location: Boulder, CO
Contact:

How do I set the label position in a pie chart?

Post by DavidThi808 » Mon Oct 12, 2009 4:21 am

It does not appear to have a setPositiveItemLabelPosition(), etc.

thanks - dave

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

Re: How do I set the label position in a pie chart?

Post by david.gilbert » Thu Oct 15, 2009 9:02 pm

There isn't a lot of control over the label positions unless you want to subclass. What kind of position options were you looking for?
David Gilbert
JFreeChart Project Leader

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

DavidThi808
Posts: 106
Joined: Fri May 27, 2005 7:44 pm
Location: Boulder, CO
Contact:

Re: How do I set the label position in a pie chart?

Post by DavidThi808 » Thu Oct 15, 2009 9:26 pm

Just the standard Excel ones - near the center, middle, near the edge, & outside the edge.

Not a killer issue - just want to provide the functionality available.

thanks - dave

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

Re: How do I set the label position in a pie chart?

Post by david.gilbert » Thu Oct 15, 2009 9:29 pm

With simpleLabels there is a simpleLabelOffset attribute in the PiePlot...but a bug prevents it from being useful (it is fixed in Subversion though).
David Gilbert
JFreeChart Project Leader

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

Locked