How Do I Redraw Only The Highchart With New API That Depends On My Select Option Parameter?
im trying to figure out if its possible to redraw the chart based on my parameter that will only call an specific API? here's the look of my chart upon load. https://imgur.com/a/u
Solution 1:
To dynamically change chart options you can use chart.update()
method where new options like series.data
, chart.title
, axis options etc can be passed. When only data needs to be changed you can use series.setData()
or series.update()
. Check demo and docs posted below to learn more about it.
Demo:
- chart.update(): https://jsfiddle.net/BlackLabel/v4f862ty/2/
- series.setData(): http://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/members/series-setdata/
API reference:
Post a Comment for "How Do I Redraw Only The Highchart With New API That Depends On My Select Option Parameter?"