slight animation for chart color update

This commit is contained in:
Jack 2021-08-07 15:44:20 +01:00
parent 232aa73061
commit 3d2baf0d8f

View file

@ -679,7 +679,7 @@ export async function updateColors(chart) {
chart.data.datasets[1].trendlineLinear.style = subcolor;
} catch {}
chart.update({ duration: 0 });
chart.update({ duration: 250 });
}
Chart.prototype.updateColors = function () {