NativeScript / nativescript-ui-charts

NativeScript wrapper around HiCharts library
Apache License 2.0
26 stars 6 forks source link

plot.options.series: {animation: false} and chart.animation: false have no effect #12

Open cjohn001 opened 4 years ago

cjohn001 commented 4 years ago

Which platform(s) does your issue occur on?

Please, provide the following version numbers that your issue occurs with:

Please, tell us how to recreate the issue in as much detail as possible.

I have a master page with a chart and a detail page. When I navigate from master page to detail the navigation history is kept alive. When I go back from detail page to chart page, I would expect that the animation of the chart does not get activated if chart.animation : false

see https://api.highcharts.com/highcharts/chart.animation

I checked that my chart item is neither recreated nor that its data are refreshed in any way. Hence, I consider this as a bug.

I suspected, that the chart might be internally recreated in the plugin, and therefore tried to set plotOptions.series.animation to false to disable an initial animation. However, this flag does also seem to have no effect. So actually I assumed to see two different bugs here.

see, https://api.highcharts.com/highcharts/plotOptions.series.animation

shiv19 commented 3 years ago

@cjohn001 Thanks for reporting this! https://api.highcharts.com/highcharts/chart.animation looks like the chart.animation can either be a boolean or an AnimationsOptionsObject. Currently this plugin is only supporting 1 type for every key. I'll have to refactor that a bit to support multiple types for the same key.