Friday, 15 April 2011

javascript - Dynamically modifying the HighChart layout options -



javascript - Dynamically modifying the HighChart layout options -

i can't find way update margintop value of created chart.

check out example:

http://jsfiddle.net/tzaev/4/

var btn = $('#btn'); btn.click(function(){ // changes });

i need alter chart.margintop value without creating chart object again. (when click on trigger button, example).

var btn = $('#btn'); btn.click(function(){ chart.optionsmargintop += 20; chart.isdirtybox = true; // makes chart redraw chart.redraw(); });

demo

javascript highcharts

No comments:

Post a Comment