timeseries won't update

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Ricardo Trindade

timeseries won't update

Post by Ricardo Trindade » Fri Oct 18, 2002 5:06 pm

Hi,

I'm generating charts using BasicTimeSeries. After the chart is created, I need to add samples. I call series.addOrUpdate(...) on the series object that was used to create the chart, but it doesn't get updated.

I'm probably missing something basic here...

thanks

Dave Gilbert

Re: timeseries won't update

Post by Dave Gilbert » Fri Oct 18, 2002 5:16 pm

Looking at the code, it seems that the addOrUpdate(...) method is missing a fireSeriesChanged() call for the case where the time period is new (the 'add' case rather than the 'update' case). Too bad I just uploaded 0.9.4 to SourceForge...I'll fix it now, for inclusion in the 0.9.5 release.

Regards,

DG.

Locked