Skip to content

Commit

Permalink
Merge pull request #1426 from FlowFuse/1411-x-axis-cutoff
Browse files Browse the repository at this point in the history
Charts: Don't add to xLabels for non-categorical charts
  • Loading branch information
Steve-Mcl authored Oct 29, 2024
2 parents 0bbb3d4 + 3e58e81 commit 3e6b804
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 3e6b804

Please sign in to comment.