Skip to content

Commit

Permalink
fix: set yKey to 'none' if nonArrayValues
Browse files Browse the repository at this point in the history
  • Loading branch information
ozyx committed Oct 17, 2024
1 parent 03e7419 commit e67c117
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/charts/bar/BarGraphView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ export default {
yKey = arrayValues.length > 1 ? arrayValues[1].key : yAxisMetadata.key;
} else if (nonArrayValues.length > 0) {
xKey = nonArrayValues[0].key;
yKey = yAxisMetadata ? yAxisMetadata.key : 'none';
yKey = 'none';
} else {
// Fallback if no valid xKey or yKey is found
xKey = 'none';
Expand Down

0 comments on commit e67c117

Please sign in to comment.