I've to a problem that alhough LegenItemCollection holds all the data for all Series in plot, it doesnt keep the link from which Series is the LegendItem. It came from a problem to make a shape for legend item according to its representation in plot. To copy shape from LineAndShapeRenderer to Legend.
or there is way to gather SeriesCollection?
Legend,Series,Dataset
Found
Yeah, nices can be done through Legend class, but there i met another problem. When used in DualAxisDemo with this code
it makes legend item responsible for bars to be striken through with a line.
Code: Select all
StandardLegend legend = (StandardLegend) chart.getLegend();
legend.setDisplaySeriesShapes(true);
legend.setDisplaySeriesLines(true);