Hi All,
I'm new to this API & it's really good. I'd appreciate if someone could tell me as to how can I make averages charts (daily,weekly, & so on) based on a Collection of java.util.Date objects ? Is there some Dataset in the API which will take care of all the dirty work for me.
Kindly advice or point me in the right direction.
Cheers David Gilbert for such a great effort.
Regards
Ashish Hareet
Daily,Weekly & Monthly Averages
Re: Daily,Weekly & Monthly Averages
The moving average code in JFreeChart is long overdue for a rewrite, I'd recommend for now that you write your own code to handle it.
Also, a Collection of Date objects isn't going to give you enough to go on...where are the values coming from?
Regards,
Dave Gilbert
Also, a Collection of Date objects isn't going to give you enough to go on...where are the values coming from?
Regards,
Dave Gilbert
Re: Daily,Weekly & Monthly Averages
Hi Dave,
The values are coming from a database with dates & values in two columns.
Was thinking of writing a generic class - say DateValuePair - which could hold the date-value pairs & few generic methods that could calculate the required averages given a Collection of DateValuePair objects & return them as a Collection of DateValuePairs.
BTW, can you tell me where can I have a peek at the JFreeChart's moving average code !
Thanx
Ashish Hareet
The values are coming from a database with dates & values in two columns.
Was thinking of writing a generic class - say DateValuePair - which could hold the date-value pairs & few generic methods that could calculate the required averages given a Collection of DateValuePair objects & return them as a Collection of DateValuePairs.
BTW, can you tell me where can I have a peek at the JFreeChart's moving average code !
Thanx
Ashish Hareet
Re: Daily,Weekly & Monthly Averages
I think you will find it in the com.jrefinery.chart.data package.
Regards,
Dave Gilbert
Regards,
Dave Gilbert