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.
Source:stackexchange.com