2013-03-26 76 views

回答

3

看起來你可以做同樣的方式在highcharts。每個系列指定yAxis:n其中n是您想要對其進行繪製的軸,並且您需要定義n個y軸入口。我修改了其中一個示例highstock演示:http://jsfiddle.net/ykfmG/

$.getJSON('http://www.highcharts.com/samples/data/jsonp.php?filename='+ name.toLowerCase() +'-c.json&callback=?', function(data) { 

     seriesOptions[i] = { 
      name: name, 
      data: data, 
      yAxis:i 
     }; 
} 



     yAxis: [{ 
      labels: { 
       formatter: function() { 
        return (this.value > 0 ? '+' : '') + this.value + '%'; 
       } 
      }, 
      plotLines: [{ 
       value: 0, 
       width: 2, 
       color: 'silver' 
      }] 
     },{opposite:true},{opposite:true},{opposite:true}], 
+0

完美,非常感謝你:) – saulob 2013-03-27 12:40:01