I wish to create the time chart and retrive the data from the database and display it in the database dynamically ! below is the sample code that is static so how can i create it dynamically to retrieve data from database
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException{
//super(title);
this.series = new BasicTimeSeries("Quarterly Data", Quarter.class);
this.series.add(new Quarter(1, 2001), 500.2);
this.series.add(new Quarter(2, 2001), 694.1);
Time Chart
Re: Time Chart
I haven't written any code that reads time series data from a database, but it can't be all that difficult. At some point I will write something, but someone else may get there before I do...
Regards,
DG.
Regards,
DG.
Re: Time Chart
Leonard
JdbcXYDataset supports timeseries. use the executeQuery method.
The query should be in the form :
select time, value1, value2, ... from table where ....
Bryan
JdbcXYDataset supports timeseries. use the executeQuery method.
The query should be in the form :
select time, value1, value2, ... from table where ....
Bryan