Hello,
i m using jfreechart 0.9.4... and using chart TimeSeriesDemo class.
I am getting problem when i entered to duplicate date with value.accually i want enter date with time.
such as i enterd date 12/12/2002 8:00 and value 100
and second value is 12/12/2002 10:00 and value 110
like that.
so tell me how can i add that value in BasicTimeSeries class.
and secong thing when i close chart frame that time whole my projectclose.
i want only close chart frame not close my project.
Thanks and regards
Sandy
problem to insert date with time
Re: problem to insert date with time
sandy wrote:
> i m using jfreechart 0.9.4... and using chart
> TimeSeriesDemo class.
> I am getting problem when i entered to duplicate date with
> value.accually i want enter date with time.
> such as i enterd date 12/12/2002 8:00 and value 100
> and second value is 12/12/2002 10:00 and value 110
> like that.
You could use the Hour class as your time period.
> so tell me how can i add that value in BasicTimeSeries class.
> and secong thing when i close chart frame that time whole my
> projectclose.
> i want only close chart frame not close my project.
Are you using the ChartFrame class? Better to just use a ChartPanel and put it into your own JFrame...
Regards,
DG
> i m using jfreechart 0.9.4... and using chart
> TimeSeriesDemo class.
> I am getting problem when i entered to duplicate date with
> value.accually i want enter date with time.
> such as i enterd date 12/12/2002 8:00 and value 100
> and second value is 12/12/2002 10:00 and value 110
> like that.
You could use the Hour class as your time period.
> so tell me how can i add that value in BasicTimeSeries class.
> and secong thing when i close chart frame that time whole my
> projectclose.
> i want only close chart frame not close my project.
Are you using the ChartFrame class? Better to just use a ChartPanel and put it into your own JFrame...
Regards,
DG