Page 1 of 1

How do i reset the datasets in Plot

Posted: Tue Jul 29, 2008 9:03 pm
by sachinch
How do i reset the datasets in a Plot?I have been drawing the multiple graphs of which some may required multiple axis.Those required multiple axis,i am putting them in a new TimeSeriesCollection.For each iteration,based upon the selection of new tree node,i want to load new data into the dataset.SO my question is how do i reset the dataset before begining of the fresh cycle.
Let me know
Thanks
Sachin

Posted: Tue Aug 12, 2008 11:06 am
by david.gilbert
This seems like a question for the JFreeChart forum:

http://www.jfree.org/phpBB2/viewforum.php?f=3

To 'reset' a dataset, see if the dataset you are using has a clear() method, or just set the dataset to null (or replace it with a new instance of the same dataset class, containing no data).