How do I update a JFreeChart live?
When a user adds data to the data model, I'd like to change the chart straight away
Do you have any listeners for this usage?
Thanks
Jack
Looking for ways to update JFreePieCharts on the fly
-
- Posts: 15
- Joined: Thu Nov 01, 2012 6:41 am
- antibot: No, of course not.
Re: Looking for ways to update JFreePieCharts on the fly
Hi!
If you use the default dataset implementations, that happens automatically.
If you implemented your own dataset you have to notify the listeners. Have a look at the AbstractDataset.fireDatasetChanged() method for details.
hth,
- martin
If you use the default dataset implementations, that happens automatically.
If you implemented your own dataset you have to notify the listeners. Have a look at the AbstractDataset.fireDatasetChanged() method for details.
hth,
- martin