Hi all,
I want to display legend east side of the chart. But I could not find any way for doing this.
Is there any one have an idea?
Regards,
Onder.
How to replace legend (to east side) in piechart ??
-
- Posts: 13
- Joined: Mon May 22, 2006 3:01 pm
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
The LegendTitle class inherits the setPosition(RectangleEdge) method from the Title class. You can use this to change the position of the legend at any time.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


-
- Posts: 13
- Joined: Mon May 22, 2006 3:01 pm
Thanks a lot, it has done.
Now I have a new question;
I am trying to customize my pie charts labels. For example lable of charts part is 'SCM = 3%'. I want to show just the value '3%'. I have searced about this and find this:
public String generateSectionLabel(final PieDataset dataset, final Comparable key)
{
String result = null;
if (dataset != null) {
if (!key.equals("PHP")) {
result = key.toString();
}
}
return result;
}
Result is 'SCM' not '3%'. How could I correct this.
Regards,
Onder.
Now I have a new question;
I am trying to customize my pie charts labels. For example lable of charts part is 'SCM = 3%'. I want to show just the value '3%'. I have searced about this and find this:
public String generateSectionLabel(final PieDataset dataset, final Comparable key)
{
String result = null;
if (dataset != null) {
if (!key.equals("PHP")) {
result = key.toString();
}
}
return result;
}
Result is 'SCM' not '3%'. How could I correct this.
Regards,
Onder.