Accepted answer

option 1) just make sure you still specify "renderto:'container'" in the chart properties. or, if you don't want to include in the initial chart code, add it to the options in your forcereset function.

option 2) in your forcereset function, use the same '$('#container').highcharts...' syntax to call your chart, rather than switching back to the other syntax

example of option 2:

{{edit option 3:

  • set options variable up front.
  • call chart on page load using that variable.
  • reload chart using that variable

Related Query

More Query from same tag