Do a nice fast animation

This commit is contained in:
Dane Everitt 2019-09-29 14:06:42 -07:00
parent 29834a33f8
commit 5301ab4235
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -17,10 +17,7 @@ const chartDefaults: ChartConfiguration = {
enabled: false,
},
animation: {
duration: 0,
},
hover: {
animationDuration: 0,
duration: 250,
},
elements: {
point: {
@ -58,7 +55,6 @@ const chartDefaults: ChartConfiguration = {
},
} ],
},
responsiveAnimationDuration: 0,
},
};
@ -133,7 +129,7 @@ export default () => {
data.push(bytesToMegabytes(stats.memory_bytes));
data.shift();
memory.update();
memory.update({ lazy: true });
}
if (cpu && cpu.data.datasets) {
@ -142,7 +138,7 @@ export default () => {
data.push(stats.cpu_absolute);
data.shift();
cpu.update();
cpu.update({ lazy: true });
}
};