2013-03-26 50 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