PDA

View Full Version : Line Chart - Scale problem



RobWilson
17 Jan 2011, 10:03 AM
Hi,

I have a line chart where most of the values plotted are between the range 200-220, but the Y-Axis scale starts at 0, making the distinctions between 200 and 220 unclear.

What I need to do is make my YAxis start at 200 and end at 220.

What configuration is required to auto-scale the axis like this?

Cheers,
Rob.

RobWilson
19 Jan 2011, 4:17 AM
I found the solution. I had tried to set the following



.
.
extraStyle: {
yAxis: {
titleRotation : -90,
alwaysShowZero : false
}
}
.
.


But I needed to do this in the NumericAxis defintion instead...



.
.
yAxis: new Ext.chart.NumericAxis({
title : 'Closing price',
alwaysShowZero : false
}),
extraStyle: {
yAxis: {
titleRotation : -90,
}
}
.
.