Skip to content

fix(ui): hide axis titles when dimension labels are unset#150

Merged
fahimfaisaal merged 4 commits into
mainfrom
fix/hide-axis-labels-without-names
Jun 25, 2026
Merged

fix(ui): hide axis titles when dimension labels are unset#150
fahimfaisaal merged 4 commits into
mainfrom
fix/hide-axis-labels-without-names

Conversation

@fahimfaisaal

Copy link
Copy Markdown
Member

Summary

2D bar, line, and scatter charts no longer show default x/y axis titles when a dimension has no human-readable label from --group. Axis titles render only when an explicit label is provided.

Pie charts are unchanged: dual-axis pie layouts still show dimension titles via their own fallbacks (X-Axis / Y-Axis).

Changes

  • Stop falling back to axis keys (x, y, z) when building axisLabels in transform.ts and Dashboard.vue
  • Chart option builders already gate ECharts name on truthy labels, so no composable changes were needed
  • Add tests for empty axisLabels in value/group scatter paths and in buildValueModeChart

Test plan

  • npm test -- --run src/lib/transform.test.ts
  • npm test -- --run src/composables/charts/useScatterChartOptions.test.ts

Stop falling back to axis keys (x/y) in axisLabels so 2D bar, line, and
scatter charts no longer render default axis names. Pie charts still show
dimension titles in the dual-axis layout via their own fallbacks.
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@fahimfaisaal
fahimfaisaal merged commit 4ec6e08 into main Jun 25, 2026
13 checks passed
@fahimfaisaal
fahimfaisaal deleted the fix/hide-axis-labels-without-names branch June 25, 2026 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants