javascript - Highcharts dynamically add/change yAxis plotLines -
i'm trying make possible users add max plotline chart , have change background color of chart if plot goes above line. can't seem method update plotlines. i've tried:
chart.yaxis[0].update({ plotlines: [{ id: 'limit-max', color: 'blue', dashstyle: 'longdashdot', width: 1, value: 45000, zindex: 0 }] });
but error:
typeerror: undefined
...dbands,function(a){a.render()});n(this.series,function(a){a.isdirty=!0})},setcat...
highcharts.js (line 136)
you can destroy , create new plotlins, because update() function not available.
Comments
Post a Comment