I have 1440 data points per day, and need to give my users the ability to view the graph at high enough resolution to look at minute-by-minute fluctuations: maybe a 3 or 4-hour window that can be moved backward or forward on the full 24 hours' worth of data.
Searching this Phorum, I've found several tantalizing hints on the subject.
For example, back on July 22d, David Gilbert said
> I don't think it would be that easy to add a scroll bar, but I plan to add
> 'pan left' and 'pan right' options to the popup menu in a future version of
> JFreeChart.
What is the present status of this issue? If it hasn't been implemented, I'll be tempted to try it, but if it either already exists or is almost complete "As We Speak", I don;t want to waste time re-inventing the wheel....
I do see that the DateAxis and NumberAxis classes have a property called fixedAutoRange, which appears to be closely related to this topic, but it's not clear to me whether "old" data-points get discarded, or whether (and how) it's already possible to slide that fixed range backward?
Thanks,
Irv Thomae
Horizontal scrolling TimeSeriesCharts(again)
Re: Horizontal scrolling TimeSeriesCharts(again)
Hi Irv,
No work has been done yet on the 'pan left' and 'pan right' menu options. If you are happy to do it, that would be great.
The fixedAutoRange property only affects the axis (that is, the 'view' of the data), not the data itself.
In CVS the BasicTimeSeries class has been amended to have a new 'windowCount' attribute. This allows the time series to discard old data outside the data 'window'. For example, if you use the Minute class for your data, and want only the most recent 3 hours worth of data, set the windowCount to 180. When you add a new observation, anything more than 180 minutes older will be discarded from the dataset. There's a demo program MemoryUsage.java that illustrates this using Millisecond time periods.
Regards,
DG.
No work has been done yet on the 'pan left' and 'pan right' menu options. If you are happy to do it, that would be great.
The fixedAutoRange property only affects the axis (that is, the 'view' of the data), not the data itself.
In CVS the BasicTimeSeries class has been amended to have a new 'windowCount' attribute. This allows the time series to discard old data outside the data 'window'. For example, if you use the Minute class for your data, and want only the most recent 3 hours worth of data, set the windowCount to 180. When you add a new observation, anything more than 180 minutes older will be discarded from the dataset. There's a demo program MemoryUsage.java that illustrates this using Millisecond time periods.
Regards,
DG.