diff --git a/modules/statistiche/js/stats/line_chart.js b/modules/statistiche/js/stats/line_chart.js index fe41594c4..f15ed0e38 100755 --- a/modules/statistiche/js/stats/line_chart.js +++ b/modules/statistiche/js/stats/line_chart.js @@ -44,8 +44,8 @@ class LineChart extends Stat { labels.push(date.format("MMMM YYYY")); }); - while (chart.data.badges.length < data.results.length) { - chart.data.badges.push(""); + while (chart.data.labels.length < data.results.length) { + chart.data.labels.push(""); } chart.data.datasets.push({ @@ -100,11 +100,11 @@ class LineChart extends Stat { color = color.substr(0, 7); chart.data.datasets.splice(dataset_index, 1); - chart.data.badges.splice(dataset_index, 1); + chart.data.labels.splice(dataset_index, 1); } - while (chart.data.badges.length > max_length) { - chart.data.badges.pop(""); + while (chart.data.labels.length > max_length) { + chart.data.labels.pop(""); } chart.update();