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

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -