Labels of a graph

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
cristina
Posts: 6
Joined: Fri Oct 22, 2004 6:14 pm

Labels of a graph

Post by cristina » Mon Mar 21, 2005 4:48 pm

My problem is that in a MultiplePiePlot one of the graphs does not show me correctly the labels, they stay out of the area of drawing


Thank you
Cristina

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 » Mon Mar 21, 2005 11:29 pm

Can you post some code that illustrates the problem, and supply some details of your environment?
David Gilbert
JFreeChart Project Leader

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

cristina
Posts: 6
Joined: Fri Oct 22, 2004 6:14 pm

Post by cristina » Tue Mar 22, 2005 1:58 pm

hello!
part of the code is:

p.setLabelGenerator(new StandardPieItemLabelGenerator("{0} ({2})", NumberFormat.getNumberInstance(), NumberFormat.getPercentInstance() ));

p.setLabelFont(new Font("SansSerif", Font.PLAIN, 10));
p.setMaximumLabelWidth(0.25);
p.setInteriorGap(0.20);
p.setLabelGap(0.02);
p.setDirection(Rotation.ANTICLOCKWISE);


I am doing a MultiplePiePlot where I show three piechart; two meet well and in other the labels stay out delarea of drawing

thank you, again
Cristina

Locked