I have a TimeSeriesCollection of TimeSeriesDataItems in which I have values, for example, 1, 2, 3, 4, 5. And I want to apply a multiplier to the values such as multiplier= 10 so values become 10, 20, 30, 40, 50 on the (line) chart instead of 1, 2, 3, 4, 5.
Is there any functionality in jfreechart that allows for a multiplier or scaling to be applied to the values in TimeSeriesDataItem with out having to overwrite each dataItem value directly?
Thanks, Stacey
multiplier or scale values
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
No, but you could write a wrapper class that implements the XYDataset interface, holds an internal XYDataset, and returns y values from the internal dataset multiplied by 10.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

