Chartjs-Disable Charts.js animations in Polymer?

0👍

<chart-line>.options requires an Object, which means optionsData should be an Object. You’ve assigned a string to that property (and a malformed JSON string at that), but you should be assigning the actual JSON object like this:

constructor() {
  super();
  this.optionsData = {animation: {duration: 0}};
}

or more simply:

constructor() {
  super();
  this.optionsData = {animation: false};
}

demo

Leave a comment