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

fix: Temporal values in X axis in column charts #1025

Merged
merged 3 commits into from
May 8, 2023

Conversation

bprusinowski
Copy link
Collaborator

@bprusinowski bprusinowski commented Apr 28, 2023

Fixes #1024.

We were creating the lookups in useMaybeAbbreviations by using dimension values. While it's not a problem for most dimensions, we only fetch min and max values for temporal dimensions which leads to problems described in #1024.

This PR fixes that by passing "fake" dimension values (based on the ones that appear in the data) for column charts (X axis).

@bprusinowski bprusinowski requested a review from ptbrowne as a code owner April 28, 2023 13:33
@vercel
Copy link

vercel bot commented Apr 28, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
visualization-tool ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 8, 2023 7:53am

Copy link
Collaborator

@ptbrowne ptbrowne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: I think the useMaybeTemporalValues was coded as a hook to be similar to useMaybeAbbreviations but I think actually here that using a normal business function would be easier.

LGTM !

@bprusinowski bprusinowski merged commit ea88536 into main May 8, 2023
@bprusinowski bprusinowski deleted the fix/temporal-values-in-column-charts-x-axis branch May 8, 2023 07:54
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.

Temporal values not being displayed correctly on x-axis on INT
2 participants