I know, that we can add normal graphic shape in java to chartpanel from jfreechart, but, that if it is dynamic chart, which updates i.e. every 1 minute. Is easier way, to do this, than getting X/Y of some point from dataset, and repaint all graphics every 1 minute. And there is another problem, when point of chart which declare one edge of i.e. rectangle, will hide behind Axis, after i.e. 30 minutes (if zoom shows litle part of chart).
Asked
Active
Viewed 241 times
1 Answers
1
DynamicTimeSeriesCollection
, illustrated here, may meet your requirements. It can easily keep pace when updated at one minute intervals, and it automatically displays only the most recent nMoments
. This alternative using TimeSeriesCollection
retains all data added up to the limit specified in setMaximumItemAge()
for each TimeSeries
.
-
Ok, but, my question is about drawing and integrating with chart some java shapes, like rectangle. How to, dynamicly change shape coordinates while chart is updating. – Bernard Burn Aug 30 '12 at 09:41
-
Ok, I will try after, to paste here some code, or more about that what I need. I hope that will help to understand me :) (it's because my English is poor) – Bernard Burn Aug 30 '12 at 13:03