Hi,
How can I change the order of items in the legend without affecting the order of series in the diagram. I want to show the series in opposite order in the legend. How can I do that?
How to change the order of items in the legend?
Re: How to change the order of items in the legend?
hi make__,
i sort the items in the series i show in the chart and then i have my legend items sorted accordingly.
bye
frank
i sort the items in the series i show in the chart and then i have my legend items sorted accordingly.
bye
frank
make__ wrote:Hi,
How can I change the order of items in the legend without affecting the order of series in the diagram. I want to show the series in opposite order in the legend. How can I do that?
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Take a look in the getLegendItems(...) method in the CategoryPlot and XYPlot classes. There is probably a way to modify it to do what you are after.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

