adam
Posts: 7
Joined: Wed Dec 25, 2024 4:03 am

How to update component chartConstructor options?

Hi, how do i update chartConstructor from 'chart' to 'mapChart?
User avatar
dawid.d
Site Moderator
Posts: 1222
Joined: Thu Oct 06, 2022 11:31 am

Re: How to update component chartConstructor options?

Hi,

Thank you for the question!

Normally, it should work with update, but I noticed that the chart is not re-rendered in this case, so it appears to be a bug. I have reported it here: https://github.com/highcharts/highcharts/issues/22492 and already implemented a fix, which should be included in the next release.

As a workaround, you can manually remove and reset the chart when updating.
Demo: https://jsfiddle.net/BlackLabel/4nwah73s/

Hope it helps!
Best regards,
Dawid Draguła
Highcharts Developer

Return to “Highcharts Dashboards”