2017-05-04 54 views

回答

0

这不是API的一部分,但它是可以更新plotBand的选项,演示:http://jsfiddle.net/2sqpt1aa/

段:

var chart = $("#container").highcharts(), // get chart 
    plotBand = chart.xAxis[0].plotLinesAndBands[0]; // get first plotBand 

// Update options: 
plotBand.options.from = 2010; 
plotBand.options.to = 2012; 

// Render the plotBand: 
plotBand.render();