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(dashboards): Abbreviate LineChartWidget Y axis integers #81937

Merged
merged 4 commits into from
Dec 11, 2024

Conversation

gggritso
Copy link
Member

@gggritso gggritso commented Dec 10, 2024

Converts numbers like "800,000" to "800k" in the Y Axis of LineChartWidget but not in the tooltip! I split the formatChartValue function into two, one for formatting the value in the Y axis, and one for formatting the value for the tooltip. They're different! In the tooltip we expect to have more digits.

I'll continue to tweak this as I find more cases.

@gggritso gggritso requested a review from a team as a code owner December 10, 2024 21:24
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Dec 10, 2024
Copy link
Member

@nikkikapadia nikkikapadia left a comment

Choose a reason for hiding this comment

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

just a small comment

@gggritso gggritso merged commit e617d9b into master Dec 11, 2024
42 checks passed
@gggritso gggritso deleted the fix/dashboards/abbreviate-line-chart-big-numbers branch December 11, 2024 16:17
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