Legend,Series,Dataset

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
iogan18tm
Posts: 24
Joined: Tue May 04, 2004 5:14 pm

Legend,Series,Dataset

Post by iogan18tm » Tue May 04, 2004 11:12 pm

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?

iogan18tm
Posts: 24
Joined: Tue May 04, 2004 5:14 pm

Found

Post by iogan18tm » Wed May 05, 2004 7:27 am

Yeah, nices can be done through Legend class, but there i met another problem. When used in DualAxisDemo with this code

Code: Select all

StandardLegend legend = (StandardLegend) chart.getLegend();
legend.setDisplaySeriesShapes(true);
legend.setDisplaySeriesLines(true);
it makes legend item responsible for bars to be striken through with a line.

Locked