1. getDataItem on Timeseries always returns -1 jfree.org[code] let say timeSeries count is 100. TimeSeriesDataItem item = timeSeries.getDataItem(1); // got valid dataitem RegularTimePeriod tp = item.getPeriod(); //or with // RegularTimePeriod tp = new Day(new Date(item.getPeriod().getStart().getTime())); TimeSeriesDataItem item2 = timeSeries.getDataItem(tp); item2 is always returning null. or int index = timeSeries.getIndex(tp); index is always -1. [/code] Please help, trying to get index of timePeriod using RegularTimePeriod rtp = new Day(new ... |
2. IndexOutOfBoundsException on TimeSeries.getDataItem() jfree.orgIndexOutOfBoundsException on TimeSeries.getDataItem() by MB Wed Dec 03, 2008 10:06 am Hello everyone, I have just started to use JFreeChart and I must say I'm impressed. I realy like the abstractions and the general approach towards charting. Well done! Nevertheless I think that I have run into a problem with an IndexOutOfBoundsException which is thrown by the renderer when the ... |