nativescript-ui-charts icon indicating copy to clipboard operation
nativescript-ui-charts copied to clipboard

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

Open cjohn001 opened this issue 5 years ago • 1 comments

Which platform(s) does your issue occur on?

  • only tested on iOS
  • iOS versions 14, 11.2
  • emulator

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

  • CLI: 7.0.11 "dependencies": { "@angular/animations": "~10.1.6", "@angular/common": "~10.1.6", "@angular/compiler": "~10.1.6", "@angular/core": "~10.1.6", "@angular/forms": "~10.1.6", "@angular/platform-browser": "~10.1.6", "@angular/platform-browser-dynamic": "~10.1.6", "@angular/router": "~10.1.6", "@nativescript/angular": "~10.1.7", "@nativescript/core": "~7.0.11", "@nativescript/firebase": "~11.0.0", "@nativescript/iqkeyboardmanager": "~2.0.0", "@nativescript/localize": "~5.0.2", "@nativescript/secure-storage": "^3.0.0", "@nativescript/theme": "~3.0.0", "@nativescript/ui-charts": "0.0.5", "apollo-angular-link-http": "^1.11.0", "apollo-cache-inmemory": "~1.6.6", "apollo-cache-persist": "~0.1.1", "apollo-link": "~1.2.14", "apollo-link-batch-http": "~1.2.14", "apollo-link-context": "~1.0.20", "apollo-link-error": "~1.1.13", "apollo-link-logger": "~1.2.3", "d3-ease": "^2.0.0", "graphql": "^15.3.0", "graphql-tag": "^2.11.0", "intl": "^1.2.5", "moment": "^2.29.1", "nativescript-oauth2-ext": "file:../mnd-custom-plugins/nativescript-oauth2-ext/publish/package/nativescript-oauth2-ext-3.0.0.tgz", "nativescript-sqlite": "^2.6.4", "nativescript-ui-autocomplete": "^7.0.2", "nativescript-ui-calendar": "^7.0.2", "nativescript-ui-chart": "^8.0.2", "nativescript-ui-gauge": "~7.0.2", "nativescript-ui-listview": "^9.0.2", "offix-angular": "^0.0.4", "offix-client": "^0.15.5", "reflect-metadata": "~0.1.13", "rxjs": "^6.5.5", "tslib": "1.10.0", "uuid": "^8.3.1", "zone.js": "~0.10.2" }, "devDependencies": { "@angular/cli": "~10.1.7", "@angular/compiler-cli": "~10.1.6", "@graphql-codegen/cli": "^1.17.8", "@graphql-codegen/fragment-matcher": "^1.17.8", "@graphql-codegen/introspection": "^1.17.8", "@graphql-codegen/typescript": "^1.17.9", "@graphql-codegen/typescript-apollo-angular": "^1.17.7", "@graphql-codegen/typescript-operations": "^1.17.8", "@nativescript/android": "~7.0.0", "@nativescript/types": "~7.0.4", "@nativescript/webpack": "~3.0.7", "@ngtools/webpack": "~10.1.3", "@types/d3-ease": "^1.0.9", "@types/intl": "^1.2.0", "@types/node": "^13.13.19", "@types/uuid": "^7.0.4", "codelyzer": "^6.0.1", "keycloak-request-token": "^0.1.0", "node-sass": "^4.14.1", "tns-ios": "6.5.3", "ts-node": "^8.10.2", "tslint": "^6.1.3", "typescript": "~3.9.2" },

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

cjohn001 avatar Oct 17 '20 13:10 cjohn001

@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.

shiv19 avatar Apr 13 '21 22:04 shiv19