updating JFreechart on the fly?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
zilog
Posts: 1
Joined: Fri Jul 27, 2007 6:43 pm

updating JFreechart on the fly?

Post by zilog » Fri Jul 27, 2007 6:46 pm

I am a newbie to using JFreechart, I wonder if it is possible to update an existing LineChart on the fly after it initially has been created, and how this then can be done. My application receives log data over RS232 at a certain frequency, and I want to update the plot with this new information at timer intervals, and also permit the user to scale and add offsets to the data which is then updated in close to realtime.

/Daniel

MNusinov
Posts: 15
Joined: Tue Jul 03, 2007 7:41 pm

Post by MNusinov » Mon Jul 30, 2007 9:05 pm

as long as the chart is put in a ChartPanel it'll redraw as you add data to the dataset.

Locked