u said u can override getLegendItems(). but this would return the existing legend items. i want to create new legend items and add it to the legend.
is this possible??
thanks
j
legend probelm
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
When you override the method, you can make it return whatever you like...
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


am i wrong? but ...
... i think i have to go that long way to just set the legend i want for a simple chart:
- i extend XYPlot to StepPlot,
- override getLegendItems()
- create the chart i want
- and surround the instance of my StepPlot with a dummy instance of a chart as follows
chart.setLegend(new StandardLegend(new JFreeChart(new StepPlot())));
i just wanted to delete half of the legend entries in the chart object.
am i wrong or am i not
cu
frank
- i extend XYPlot to StepPlot,
- override getLegendItems()
- create the chart i want
- and surround the instance of my StepPlot with a dummy instance of a chart as follows
chart.setLegend(new StandardLegend(new JFreeChart(new StepPlot())));
i just wanted to delete half of the legend entries in the chart object.
am i wrong or am i not

cu
frank