Skip to content

Commit

Permalink
Don't add to xLabels for non-categorical charts
Browse files Browse the repository at this point in the history
  • Loading branch information
joepavitt committed Oct 29, 2024
1 parent 9617edc commit 3e58e81
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ui/src/widgets/ui-chart/UIChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3e58e81

Please sign in to comment.