Hello Everybody,
I'm Using JFreeChart to Display the stock charts.
I would like to make it a dynamic chart.
in the sense ,as i'm trying to display the Intraday chart ,
the points keep on coming in the trading hours.
so, what i wanted is that the newly added points should be appended to the existing picture.
to be more clear as the points come they must be shown in the graph.
it's something like the movement is shown.]
i'm using timeseries chart.
can anyone suggest an idea abt this.
thanks in advance
regards
Ravi Teja
dynamic time series chart???
Re: dynamic time series chart???
Hi Ravi,
There is a demo (MemoryUsage.java) included with the JFreeChart documentation (available for purchase - see the link at the top right of this page) that shows a dynamic time series chart. It plots the free and total memory in the Java Virtual Machine, updating several times per second (you can watch it run and see when the garbage collector kicks in). 30 seconds worth of data is displayed, with the old data scrolling off the left of the chart (the old data is discarded).
This demo makes use of a new method in the BasicTimeSeries class - setHistoryCount(int). This specifies the number of time periods in the series history. In the demo I set this to 30000 (the time periods are milliseconds, so this equates to thirty seconds).
Regards,
DG.
There is a demo (MemoryUsage.java) included with the JFreeChart documentation (available for purchase - see the link at the top right of this page) that shows a dynamic time series chart. It plots the free and total memory in the Java Virtual Machine, updating several times per second (you can watch it run and see when the garbage collector kicks in). 30 seconds worth of data is displayed, with the old data scrolling off the left of the chart (the old data is discarded).
This demo makes use of a new method in the BasicTimeSeries class - setHistoryCount(int). This specifies the number of time periods in the series history. In the demo I set this to 30000 (the time periods are milliseconds, so this equates to thirty seconds).
Regards,
DG.