Convert Timeseries

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Guus
Posts: 4
Joined: Fri Dec 31, 2004 12:01 pm
Location: the Netherlands
Contact:

Convert Timeseries

Post by Guus » Fri Jan 07, 2005 10:28 am

If I construct a timeseries object with a given interval (hour, day, week, etc), is it possible to convert it to another interval?

Currently, I have a set of data (values for each day) that I want to display both as daily values (day 1: value x, day 2, value y, etc) as weekly values (week1, sum(value x, y, etc) ). Does the JFree library support something like this?
I wish to express my gratitude to the people of Italy. Thank you for inventing pizza.

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Fri Jan 07, 2005 11:48 am

There's no code in JFreeChart to do this for you - you'll have to write a utility function that does it. It shouldn't be too hard.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked