2013-02-06 136 views
0

你看到的範圍問題,當我使用多個Y軸?我怎麼解決這個問題?Highstock/Highchart - 故障與範圍上的多個Y軸

image

這是我使用相同的代碼!

yAxis: [ 
        { labels: { formatter: function() { return this.value + '".$unitall1."' }, style: { color: '#89A54E' } }, title: { text: '".$graphall1."' , style: { color : '#4572A7' } }, opposite: true }, 
        { labels: { formatter: function() { return this.value + '".$unitall2."' }, style: { color: '#4572A7' } }, title: { text: '".$graphall2."' , style: { color : '#89A54E' } }, }, 
        { labels: { formatter: function() { return this.value + '".$unitall3."' }, style: { color: '#000000' } }, title: { text: '".$graphall3."' , style: { color : '#000000' } }, }, 
        { labels: { formatter: function() { return this.value + '".$unitall4."' }, style: { color: '#C4087C' } }, title: { text: '".$graphall4."' , style: { color : '#C4087C' } }, opposite: true } 
         ], 
+0

的(http://stackoverflow.com/questions/14331112/remove-space-between-yaxis-and-data-in-highcharts) –

回答

0

使用yAxis.offset屬性設置爲每個y軸的偏移。就像是兩個軸之間的默認差距是highstock較小則是highchart