A discussion forum for JFreeChart (a 2D chart library for the Java platform).
-
guest
Post
by guest » Fri Jul 30, 2004 4:39 pm
I've updated from version 0.9.18 to version 0.9.20 and am no longer able to use secondary datasets. The following code now fails:
StandardXYItemRenderer renderer = new StandardXYItemRenderer(StandardXYItemRenderer.SHAPES_AND_LINES);
int nextSet = stockingChart.getXYPlot().getSecondaryDatasetCount();
stockingChart.getXYPlot().setSecondaryDataset(nextSet, data);
stockingChart.getXYPlot().setSecondaryRenderer(nextSet, renderer);
Can anyone help with a comparable solution? And why remove secondary datasets in the first place?
-
Tobi
- Posts: 12
- Joined: Fri Jul 30, 2004 4:12 pm
- Location: Black Forrest, Germany
-
Contact:
Post
by Tobi » Fri Jul 30, 2004 4:46 pm
Hi,
only setDataset(index, dset) is available now. I think it's a good idea to delete scondary Dataset. Now you can handle setDataset with an index, like in sceondary Dataset, without having two methods for the same thing.
-
guest
Post
by guest » Fri Jul 30, 2004 5:14 pm
Thanks Tobi!
Quick solution: take "Secondary" out of all methods.
A lot easier than I thought!