overlaid chart in cewolf and auto scaling of Y axis

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
harshanagesh
Posts: 12
Joined: Fri Jan 06, 2006 1:36 am

overlaid chart in cewolf and auto scaling of Y axis

Post by harshanagesh » Fri Jan 06, 2006 1:54 am

Hi,

I am using cewolf and I am trying to get to plot a HighLow chart along with the moving average line on it. But, when I used the overlaid chart tag option in jsp and set the "yaxistype" option as "number", the range on Y axis starts from 0, instead of automatically adjusting the starting value. If I use the same data, plot a line chart and its moving average as two time series in a time series collection and just use the chart
tag in jsp, the Y axis is auto scaled to the correct range of data (say between 55 to 135 if all Y values lie between the two).

Is there a way to have the same kind of behavior with the overlaid chart ?
If I do not set any "yaxistype" the y axis seems to have some kind of time-stamps. Can somebody help ?

Thanks,
Harsha

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 06, 2006 5:30 pm

In JFreeChart, you'd call setAutoRangeIncludesZero(false) in the NumberAxis class. I don't know how it is done in Cewolf.
David Gilbert
JFreeChart Project Leader

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

Locked