views:

64

answers:

1

Hi everyone,

I am working on TimeSeries in jfreechart and in this chart time is represented as hh:mm:ss. But when I start time from 00:00:00, chart shows the start time 12:00:00 and it rotates after 24 hour, but I do not want rotation of time such I want to see 25:00:00 in place of 1:00:00. Is there any solution for these problems?

Thanks in advance.

+1  A: 

Create your own TimeSeriesDataModel to use with the chart. Override the getValueAt method in your class to return a string formatted the way you want.

Erick Robertson
Thank you very much for your response.......
But I found only TimeSeriesTableModel not TimeSeriesDataModel and also found that the TimeSeriesTableModel maps the TimeSeries data into a JTable, that is not my requirement. I want to display Time 00:00:00 in place of 12:00:00 on the X-axis ticks of JFreeChart.