score:0

looks like i needed to create two individual instances per chart so i needed...

let chartconfig = {
  type: 'scatter',
  data: {
      datasets: []
  },
  options: chartoptions
};
let chartconfig2 = {
    type: 'scatter',
    data: {
        datasets: []
    },
    options: chartoptions
};
...
this.cpuchart = new chart(this.$refs.cpu.getcontext('2d'), chartconfig);
this.memorychart = new chart(this.$refs.memory.getcontext('2d'), chartconfig2);

i kinda see why but still feels kind of janky to me.


Related Query

More Query from same tag