Highcharts - Updating a chart's option after initial render -
is possible update chart's option (marginright example) , call redraw() have new value reflected in chart? or new instance of chart need created these types of changes?
i think may latter because sounds data or axis values can altered after chart created. see documentation redraw states:
redraw chart after changes have been done data or axis extremes
and new dynamic feature in 3.0 states:
through full api can add, remove , modify series , points or modify axes @ time after chart creation.
thank in advance.
update
my reason wanting had vertical layout , right-aligned legend overlapping chart. realized highcharts automatically sets correct marginright accommodate if 1 isn't explicitly specified.
unfortunately cannot modify margin parameter dynamically, need destroy old chart , create new instance.
this feature 1 of our target in nearest future.
Comments
Post a Comment