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

ValueFormats: Prevent rounding down of values for "Number" format #49926

Closed
wants to merge 2 commits into from

Conversation

kaydelaney
Copy link
Contributor

What this PR does / why we need it:
Prevents auto decimal handling for the "Number" format, so precision isn't lost.

Which issue(s) this PR fixes:
Closes #49388

@kaydelaney kaydelaney added this to the 9.0.0 milestone May 31, 2022
@kaydelaney kaydelaney requested a review from joshhunt May 31, 2022 14:32
@kaydelaney kaydelaney requested a review from a team as a code owner May 31, 2022 14:32
@kaydelaney kaydelaney self-assigned this May 31, 2022
@kaydelaney kaydelaney requested a review from a team as a code owner May 31, 2022 14:32
@kaydelaney kaydelaney requested review from a team, JoaoSilvaGrafana, leventebalogh, scottlepp and mdvictor and removed request for a team May 31, 2022 14:32
@kaydelaney kaydelaney added the no-changelog Skip including change in changelog/release notes label May 31, 2022
@grafanabot
Copy link
Contributor

@grafanabot
Copy link
Contributor

Copy link
Contributor

@leventebalogh leventebalogh left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@torkelo
Copy link
Member

torkelo commented Jun 1, 2022

It does not make for a good default experience showing this many decimals in legend, tooltip, stats etc

Screenshot from 2022-06-01 12-00-02
Screenshot from 2022-06-01 11-59-46
Screenshot from 2022-06-01 11-58-38

@kaydelaney
Copy link
Contributor Author

Closing this for now

@kaydelaney kaydelaney closed this Jun 2, 2022
@github-actions github-actions bot removed this from the 9.0.0 milestone Jun 2, 2022
@torkelo
Copy link
Member

torkelo commented Jun 2, 2022

@kaydelaney @joshhunt how about we add a new number unit that does show all decimals by default?

Not sure what to call it though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/frontend backport v9.0.x enterprise-ok no-changelog Skip including change in changelog/release notes
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Default number formatter rounds numbers down to 3 significant digits
5 participants