How can I force multiple y-axis in Highcharts to have a common zero

后端 未结 7 1409
萌比男神i
萌比男神i 2021-01-02 00:32

See this JSFiddle. How do I get the y-axis zero to align?

7条回答
  •  时光取名叫无心
    2021-01-02 00:49

    The simplest way is to just provide the same min/max for each axis. It would be a pretty simple to determine a good min/max based on the data before the plot call (combine the arrays, take the min/max round down/up to nearest int, would be my approach).

    pretend this is code so I can link to jsFiddle
    

    Updated fiddle.

提交回复
热议问题