need to dynamically update plot values

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

need to dynamically update plot values

Post by Sudha Sundaram » Thu Feb 22, 2001 3:24 am

I find jfreechart to be very useful. I need to update the vertical bar
plot values dynamically. Every 3 secs or so, I expect to display newer values in the plot. If newer values are there, Which part of the jFreeChartDemo, should i add code to check for changes in the values of the plot values, so that I can set the chart.setDataSource?

thanks in advance
sudha

Sudha Sundaram

RE: need to dynamically update plot values

Post by Sudha Sundaram » Tue Feb 27, 2001 12:11 am

Created an instance of timer in JFreeChartdemo. The timer periodically checks for change in data and if there is a change, sets chart.setDataSource(newdata).

Sudha

Locked