It is currently Thu Apr 24, 2014 2:40 am Advanced search

Scales in charts with more than one pane

Technical support for the Highcharts Stock package

Scales in charts with more than one pane

Postby diego » Mon Feb 20, 2012 6:35 pm

Hi,

I'm trying to implement a chart with more than one pane, all the panels except the first are rendered with sightly wrong scale. See this example

2panes.png
Chart with 2 panes
2panes.png (39.86 KiB) Viewed 322 times


You can see that the max value at the second yAxis is 500, but it should be a lesser value. And, if I hide the first serie, the second's scale it's OK

bien.png
One pane hided
bien.png (24.88 KiB) Viewed 322 times


My yAxis params are:

Code: Select all
[
  {
    "top": 40,
    "lineWidth": 2,
    "plotLines": [

    ],
    "height": 200,
    "offset": 0,
    "title": {
      "text": "visitas"
    }
  },
  {
    "top": 280,
    "lineWidth": 2,
    "plotLines": [

    ],
    "height": 100,
    "offset": 0,
    "title": {
      "text": "otracosa"
    }
  }]


Thanks in advance
diego
 
Posts: 12
Joined: Thu Sep 01, 2011 11:07 am

Re: Scales in charts with more than one pane

Postby fingolion » Tue Feb 21, 2012 11:36 am

Have you tried with "max" and "min" options?

http://www.highcharts.com/ref/#yAxis--max
fingolion
 
Posts: 7
Joined: Tue Jan 31, 2012 11:15 am

Re: Scales in charts with more than one pane

Postby gdo » Tue Feb 21, 2012 7:11 pm

Try chart:{alignTicks:false} , put alignTicks option on false
gdo
 
Posts: 4
Joined: Wed Feb 15, 2012 12:36 pm

Re: Scales in charts with more than one pane

Postby diego » Wed Feb 22, 2012 11:15 am

fingolion wrote:Have you tried with "max" and "min" options?

http://www.highcharts.com/ref/#yAxis--max


I represent big amounts of data, I dont want to iterate the data structure looking for max and min values. But thanks :)

gdo wrote:Try chart:{alignTicks:false} , put alignTicks option on false


Awesome! It works perfect. Thanks!
diego
 
Posts: 12
Joined: Thu Sep 01, 2011 11:07 am


Return to Highstock Usage

Who is online

Users browsing this forum: No registered users and 2 guests