A discussion forum for JFreeChart (a 2D chart library for the Java platform).
-
cube
- Posts: 22
- Joined: Tue Mar 30, 2004 11:26 am
-
Contact:
Post
by cube » Tue Jul 13, 2004 12:33 pm
Even though I create XYPlot with empty constructor, getDatasetCount returns 1 (the same with getRangeAxis etc.).
Because of that iterative code like this
Code: Select all
...
for (int i =0; i < 10;i++)
{
...
plot.setRangeAxis(plot.getRangeAxisCount(),rangeAxis[i]);
plot.setDataset(plot.getDatasetCount(),dataset[i]);
...
}
...
will start from dataset nr 1, what I think is counterintuitive (and creates non-working chart)
Cube
-
Yakcutter
- Posts: 3
- Joined: Tue Jul 06, 2004 3:58 pm
- Location: France or Germany
Post
by Yakcutter » Tue Jul 13, 2004 5:30 pm
I had this kind of problem and I created my own DataSetCount...
-
david.gilbert
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
-
Contact:
Post
by david.gilbert » Tue Jul 13, 2004 7:34 pm
This is a bug that I was not aware of. I'll work on a fix...
-
a344254
- Posts: 21
- Joined: Wed Oct 01, 2008 9:18 pm
Post
by a344254 » Wed May 03, 2017 2:46 pm
I just went backwards through each revision and found that 1.0.17 returns the right number but 1.0.18 doesn't, if that helps.