completenutter2
Posts: 5
Joined: Fri Jan 22, 2010 1:31 pm

100% Column

Hi,

I have some data to display, that is a percentage (to 100). However, regardless of whether or not I set a max on the y-axis, highcharts seems determined to display the chart up to 105%.

There is no data above 100, so I'm not sure why it displaying more on the y-axis than 100.

How do I force the axis to only go up to 100?

Regards,

Alex
torstein.honsi
Site Admin
Posts: 9215
Joined: Thu Nov 09, 2006 11:22 am
Location: Vik i Sogn, Norway

Re: 100% Column

What version are you on? I tested this with 1.1.2 and when I set max to 100 the axis stops at 100 regardless of the data.

If you are using the latest development version it could be a matter of setting yAxis.maxPadding to 0.
Torstein Hønsi
CTO, Founder
Highsoft
completenutter2
Posts: 5
Joined: Fri Jan 22, 2010 1:31 pm

Re: 100% Column

I'm using 1.1.2, and it only seems to be an issue when I have 2 yAxis. They seem to be sharing a grid? And since the 1st axis is extending to another tick, it is forcing the 2nd axis to do so too.

How do I get the 2 yAxis to have different grids?
torstein.honsi
Site Admin
Posts: 9215
Joined: Thu Nov 09, 2006 11:22 am
Location: Vik i Sogn, Norway

Re: 100% Column

Exactly. Can you set min and max values to the other axis too? Try with different values until the number of ticks is the same.
Torstein Hønsi
CTO, Founder
Highsoft
completenutter2
Posts: 5
Joined: Fri Jan 22, 2010 1:31 pm

Re: 100% Column

admin wrote:Exactly. Can you set min and max values to the other axis too? Try with different values until the number of ticks is the same.
I've just done exactly that, and it's fixed the problem, nothing more than a slight inconvenience. Thanks.

Return to “Highcharts Usage”