My legend has more then 10 legend items.
I want to limit the width of the legend by seperate the items into more rows, so that no legend items will show under the y-axis's label.
Is there any method to set the width of the legend?
or set maximun number of legend items in a row?
I have already search through this forum but just can't find the answer. >.<
Regards,
Andy
Legend problem
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
No. The legend code needs work.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


Another legend question
Is there a way to remove a legend entry from the legend?
If not, is there a way to plot a "reference line" on a plot w/out
having the "series" used to create a "reference line"
showing up in the legend?
If not, is there a way to plot a "reference line" on a plot w/out
having the "series" used to create a "reference line"
showing up in the legend?
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
The only way to change the items that appear in the legend (for now) is to override the getLegendItems() method in the plot.
You can put reference lines on a plot using the addDomainMarker() and addRangeMarker() methods.
You can put reference lines on a plot using the addDomainMarker() and addRangeMarker() methods.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

