hi
when using Second or Minute is get the following error.
org.apache.jasper.JasperException: You are trying to add data where the time period class is org.jfree.data.time.Second, but the TimeSeries is expecting an instance of org.jfree.data.time.Day.
Does chart only accept Day is there any way to use it for Second and Minute.
how to plot a chart for Minutes and Seconds
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
That is correct. I need to fix this so that the class is configured on the first add(), rather than in the constructor.Divya wrote:I think u might not have specified 'Minute.class' as argument in TimeSeries to generate chart with minutes ijn the x-axis.
like
TimeSeries series=new TimeSeries('some string',Minute.class)
and for second specify 'Second.class'
The mechanism exists to ensure that a TimeSeries contains only items with the same class of time period.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


Re: how to plot a chart for Minutes and Seconds
Thank you guys.This solved my problem also.






