Fix visualizzazione color periodi temporali statistiche

This commit is contained in:
MatteoPistorello 2023-05-31 09:17:42 +02:00
parent c37d40d3c7
commit e9db2e2010
1 changed files with 1 additions and 0 deletions

View File

@ -97,6 +97,7 @@ class LineChart extends Stat {
var color = null;
if (dataset_index != undefined) {
color = chart.data.datasets[dataset_index].backgroundColor;
color = color.substr(0, 7);
chart.data.datasets.splice(dataset_index, 1);
chart.data.labels.splice(dataset_index, 1);