Good Day, I using the BasicTimeSeries and updating the dataset when I received a particular event. Often while the code is running I get the following exceptions:
com.jrefinery.data.SeriesException: TimeSeries.add(...): time period already exists.
at com.jrefinery.data.BasicTimeSeries.add(Unknown Source)
at com.jrefinery.data.BasicTimeSeries.add(Unknown Source)
What causes this and how can I fix it? I am basically using the BasicTimeSeries with a dynamic chart.
Moussa
TimeSeries Exception
Re: TimeSeries Exception
I think the problem is that my data is coming too fast, therefore some data is overwritten, looking at you code that would explain the exception thrown.
I guess what I need is addOrUpdate(..) however, I guess it is missing an event fire method. I assume that I have to make the change and recompile the package?
ThankYou.
Musa
I guess what I need is addOrUpdate(..) however, I guess it is missing an event fire method. I assume that I have to make the change and recompile the package?
ThankYou.
Musa
Re: TimeSeries Exception
Hi Musa,
Yes, the fireSeriesChanged() call is missing...I've added it to my source tree, so it will be fixed in 0.9.5.
Regards,
DG
Yes, the fireSeriesChanged() call is missing...I've added it to my source tree, so it will be fixed in 0.9.5.
Regards,
DG