score: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


Related Query

More Query from same tag