amcharts / export

Apache License 2.0
56 stars 33 forks source link

amcharts : dynamic loading of themes #76

Closed kevzlou7979 closed 6 years ago

kevzlou7979 commented 6 years ago

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

martynasma commented 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.

kevzlou7979 commented 6 years ago

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

rohit-sourcefuse commented 3 years ago

This is still not possible? or now there is any way to just change the theme?