Update of a JFreeChart graph

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
yannJFreeChart
Posts: 13
Joined: Tue May 15, 2012 2:17 pm
antibot: No, of course not.

Update of a JFreeChart graph

Post by yannJFreeChart » Tue May 15, 2012 2:21 pm

Hello,

I would like to know how to update a JFreeChart graph when I click on a buton.

Somebody know how to do ?

Thank you.
Have a good day.

paradoxoff
Posts: 1634
Joined: Sat Feb 17, 2007 1:51 pm

Re: Update of a JFreeChart graph

Post by paradoxoff » Tue May 15, 2012 10:02 pm

Give the ActionListener of the button a reference to a dataset that is used in a chart, and update the dataset in the actionPerformed() method.

yannJFreeChart
Posts: 13
Joined: Tue May 15, 2012 2:17 pm
antibot: No, of course not.

Re: Update of a JFreeChart graph

Post by yannJFreeChart » Wed May 16, 2012 7:59 am

Thank you for you reply.

I search the method to update the dataset and redisplay.

Locked