Skip to content

fix(dashboards): Allow number-typed tags in categorical bar X-axis#111466

Merged
gggritso merged 1 commit intomasterfrom
georgegritsouk/dain-1400-bar-chart-x-axis-is-missing-run_id-tag
Mar 25, 2026
Merged

fix(dashboards): Allow number-typed tags in categorical bar X-axis#111466
gggritso merged 1 commit intomasterfrom
georgegritsouk/dain-1400-bar-chart-x-axis-is-missing-run_id-tag

Conversation

@gggritso
Copy link
Member

@gggritso gggritso commented Mar 24, 2026

The X-axis selector for categorical bar charts was filtering to only string-typed tags, excluding valid numeric tags like run_id and HTTP status codes. This made it impossible to group by these tags directly in the bar chart builder. I did this on purpose to prevent people from using high-cardinality values as groups but I changed my mind, there are a whole bunch of compelling reasons for people to do this (e.g., HTTP response codes) and it's not wise to just forbid it! We should probably allow boolean tags, too.

Users have to manually specify the limit of how many groups to plot, and it's <25, so the worst case scenario is they make a very silly chart with a high-cardinality X-axis like this:

Screenshot 2026-03-24 at 5 34 38 PM

On the flip side, you can make exciting charts like this, grouping by HTTP response code!

Screenshot 2026-03-24 at 5 36 55 PM

There was also a related bug where users could get numeric tags as the X-axis by setting a groupBy in timeseries mode and then switching to categorical bar — but the tag was then unselectable in the X-axis dropdown.

Refs DAIN-1400

The X-axis selector for categorical bar charts was filtering to only
string-typed tags, excluding valid numeric tags like run_id and HTTP
status codes. This made it impossible to group by these tags directly
in the bar chart builder.

Fetch both string and number attributes for EAP datasets and accept
both types in the non-EAP filter, matching the behavior of the
groupBy selector used in timeseries charts.

Refs DAIN-1400
Co-Authored-By: Claude <noreply@anthropic.com>
@gggritso gggritso requested a review from a team as a code owner March 24, 2026 21:29
@linear-code
Copy link

linear-code bot commented Mar 24, 2026

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Mar 24, 2026
@gggritso gggritso merged commit ac38d20 into master Mar 25, 2026
89 of 91 checks passed
@gggritso gggritso deleted the georgegritsouk/dain-1400-bar-chart-x-axis-is-missing-run_id-tag branch March 25, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants