Skip to content

Respect # hidden tag in chart channel assignment#2743

Open
jswir wants to merge 3 commits into
malloydata:mainfrom
jswir:fix/bar-chart-hidden-dimensions
Open

Respect # hidden tag in chart channel assignment#2743
jswir wants to merge 3 commits into
malloydata:mainfrom
jswir:fix/bar-chart-hidden-dimensions

Conversation

@jswir
Copy link
Copy Markdown
Contributor

@jswir jswir commented Mar 31, 2026

Summary

  • Hidden dimensions (# hidden) are now excluded from automatic channel assignment (x, y, series) in both bar and line charts
  • Hidden fields with explicit channel tags (# hidden # x) are still assigned normally
  • Enables the pattern of including a dimension for order_by without rendering it as an axis or series

Test plan

  • Verify hidden_dimension bar chart story renders correctly (brand on x-axis, ordered by dcId, dcId not visible)
  • Verify hidden_dimension line chart story renders correctly
  • Verify existing bar/line chart stories still work (no regressions in auto channel assignment)
  • Verify a hidden field with an explicit # x tag still gets assigned to the x channel

🤖 Generated with Claude Code

jswir added 2 commits March 30, 2026 14:45
Hidden dimensions are now excluded from automatic x/y/series channel
inference, so they remain in the query data (e.g. for order_by) without
being rendered on the chart. Explicit channel tags on hidden fields are
still honored.

Made-with: Cursor
Apply the same fix from bar charts to line charts: skip hidden
dimensions during auto channel assignment and embedded tag walking,
so they can be used for order_by without appearing as axes or series.
I, James Swirhun <james@credibledata.com>, hereby add my Signed-off-by to this commit: b763c5b
I, James Swirhun <james@credibledata.com>, hereby add my Signed-off-by to this commit: c5756e7

Signed-off-by: James Swirhun <james@credibledata.com>
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.

1 participant