help needed in piechart labels on the piescetion

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
SwethaKrish
Posts: 13
Joined: Tue Jun 19, 2007 6:03 am

help needed in piechart labels on the piescetion

Post by SwethaKrish » Sat Jan 17, 2009 1:30 pm

Hi I have created the pie chart using jfree...

Is there any way to have the percentage on the pie section rather that
having a label link...

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 » Tue Jan 20, 2009 10:44 am

setSimpleLabels(true).
David Gilbert
JFreeChart Project Leader

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

SwethaKrish
Posts: 13
Joined: Tue Jun 19, 2007 6:03 am

Post by SwethaKrish » Tue Jan 20, 2009 11:50 am

Thanks ..It worked :D

SwethaKrish
Posts: 13
Joined: Tue Jun 19, 2007 6:03 am

Post by SwethaKrish » Tue Jan 20, 2009 6:49 pm

Hi ..

currently the pie chart that I created has the PieLabel LinkStyle like
a straight line and it gets bended to make all the pie labels to get align.

Is there any way make the line straight without any cut...

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 » Wed Jan 21, 2009 9:22 am

There isn't an option for straight lines, although perhaps it wouldn't be that hard to add. But there is a nice curved line option (since version 1.0.10)...try out the setLabelLinkStyle() method.
David Gilbert
JFreeChart Project Leader

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

skalluraya
Posts: 15
Joined: Fri Jan 23, 2009 5:36 am

Post by skalluraya » Fri Jan 23, 2009 8:34 am

Hi,
is there any way to remove the label or hide it.

SwethaKrish
Posts: 13
Joined: Tue Jun 19, 2007 6:03 am

Post by SwethaKrish » Fri Jan 23, 2009 10:07 am

Hi try out

plot.setLabelGenerator(null);

to hide the label.

Locked