getEndY in IntervalXYDataset

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
mskjeret
Posts: 27
Joined: Sun May 23, 2004 8:58 am

getEndY in IntervalXYDataset

Post by mskjeret » Sat Jan 01, 2005 1:23 pm

I am trying to implement my own IntervalXYDataset and it seems to go mostly fine.

I am however having some trouble with the getEndY(int serie, int index) { }
It seems that the integer for index is always 0.
It should iterate on how large the getItemCount() retturns it is.
It atually calls the getEndY a correct amount of times, but with the incorrect index.

Has anyone else seen this?
Bug, or am I doing something wrong?

mskjeret
Posts: 27
Joined: Sun May 23, 2004 8:58 am

Post by mskjeret » Sat Jan 01, 2005 1:58 pm

I think I managed to fix it myself.
I had just added:
implements IntervalXYDataset
but looking at the demoes I added this:
extends AbstractIntervalXYDataset implements IntervalXYDataset

It then started to work, not sure why though.

Locked