How do I do that ?
Should I use chart.getCategoryPlot().getLegendItems().addAll ....
OR
chart.setLegend .....
Changing the default Legend
Re: Changing the default Legend
Hello,
What do You mean by changing the legend :
- just choose which items (seriesnames for ex) will be displayed or not ?
- write Your own texts ?
- ... ?
Regards,
Arnaud
What do You mean by changing the legend :
- just choose which items (seriesnames for ex) will be displayed or not ?
- write Your own texts ?
- ... ?
Regards,
Arnaud
Re: Changing the default Legend
The legend is coded to display each of the series in the plot. If you want to change that default behaviour you will need to override the getLegendItems() method in the plot, or write a new legend class.
Regards,
Dave Gilbert
Regards,
Dave Gilbert