Closed kevzlou7979 closed 6 years ago
No, I'm afraid there's no way to set the theme on a chart dynamically. It needs to be recreated.
Sorry.
Ok yeah I understand because the JS Themes needs to be reinjected all the time. But no worries will do the same example as you have
This is still not possible? or now there is any way to just change the theme?
Hi there,
Currently the only way to define themes requires the chart to be reloaded. Is there an api to just call
chart.setTheme("black").
so that it will automatically set the theme without reloading the whole chart or graph.Thanks, Kevin