From 3e58e819a4f3ad2d97ddf3a544c0a060cdd86eda Mon Sep 17 00:00:00 2001 From: Joe Pavitt Date: Tue, 29 Oct 2024 12:52:25 +0000 Subject: [PATCH] Don't add to xLabels for non-categorical charts --- ui/src/widgets/ui-chart/UIChart.vue | 2 -- 1 file changed, 2 deletions(-) diff --git a/ui/src/widgets/ui-chart/UIChart.vue b/ui/src/widgets/ui-chart/UIChart.vue index 518134ba2..6503480e4 100644 --- a/ui/src/widgets/ui-chart/UIChart.vue +++ b/ui/src/widgets/ui-chart/UIChart.vue @@ -487,8 +487,6 @@ export default { // ChartsJS doesn't like undefined data points const data = Array(xLabels.length).fill({}) if (xIndex === -1) { - // Add the new x-value to xLabels - xLabels.push(datapoint.x) // Add data to the end of the array data.push(datapoint) } else {