Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only show tooltip value if > 0 in a stacked bar chart #1573

Merged
merged 1 commit into from
Jan 10, 2025
Merged

Conversation

joepavitt
Copy link
Collaborator

Description

Had a customer recently raise a bit of friction whereby their bar chart tooltips had a lot of values, but a few where the values were 0. They've asked if we can filter out the 0 values, which, given we already do this in Histograms, makes sense.

Now, I have made the decision to only implement this for stacked bar charts. This is because in a side-by-side grouping, space on the x-axis is set aside for each series, and it could lead to confusion for why that space is left. The tooltip will clarify that a series exists with a value of 0, hence the empty space. For a stacked bar chart, this is not an issue.

@joepavitt joepavitt requested a review from Steve-Mcl January 10, 2025 08:47
@Steve-Mcl Steve-Mcl merged commit a39d576 into main Jan 10, 2025
1 of 2 checks passed
@Steve-Mcl Steve-Mcl deleted the bar-tooltip-0 branch January 10, 2025 14:58
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