Hi,
What is the better system for reload data in curve for redisplay whith the basictime series
Regards
Phil
Reload Data
Re: Reload Data
Hi Phil,
I'm not sure what you mean...are you looking to save and restore data from a time series?
Regards,
DG.
I'm not sure what you mean...are you looking to save and restore data from a time series?
Regards,
DG.
Re: Reload Data
Hi dave,
My problem is : I have a SQL system with a "summit button". When the user ask for a new serie of data i would like change the curve without create some new object like jfreechart or ChartPanel.
I want just set a new serie of time and redraw the curve in an existing ChartPanel object.
Regards,
Phil.
My problem is : I have a SQL system with a "summit button". When the user ask for a new serie of data i would like change the curve without create some new object like jfreechart or ChartPanel.
I want just set a new serie of time and redraw the curve in an existing ChartPanel object.
Regards,
Phil.
Re: Reload Data
If you create a new series, then you should wrap it up with a TimeSeriesCollection (because this implements the XYDataset interface) and:
JFreeChart chart = myPanel.getChart();
XYPlot plot = chart.getXYPlot();
plot.setDataset(myTimeSeriesCollection);
At least I think that should work (off the top of my head).
Regards,
DG.
JFreeChart chart = myPanel.getChart();
XYPlot plot = chart.getXYPlot();
plot.setDataset(myTimeSeriesCollection);
At least I think that should work (off the top of my head).
Regards,
DG.