Skip to content

Percentages: Fix showing of correct values #243

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

Merged
merged 4 commits into from
Jun 19, 2024
Merged

Conversation

ivanahuckova
Copy link
Contributor

Fixes #155

In this PR we are fixing showing of percent values when using data source. Previously, percent unit (which is Percent (0-100) in the UI)v was used which meant the received number was furthermore dividied by 100. To fix this, we are using percentunit (Percent (0.0-1.0) instead) that does not firthermore divide the values.

image

Fixed:

fixedpercentunit.mov

Broken (current main):

brokenwithpercent.mov

@ivanahuckova ivanahuckova requested a review from a team as a code owner June 19, 2024 12:39
@ivanahuckova ivanahuckova requested review from gabor, yesoreyeram and gwdawson and removed request for a team June 19, 2024 12:39
@ivanahuckova ivanahuckova added the type/bug Unexpected behavior or a feature is broken label Jun 19, 2024
Copy link
Member

@zoltanbedi zoltanbedi left a comment

Choose a reason for hiding this comment

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

Stellar work! ⭐

@ivanahuckova ivanahuckova merged commit 73bb560 into main Jun 19, 2024
3 checks passed
@ivanahuckova ivanahuckova deleted the ivana/fix-percent-unit branch June 19, 2024 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Unexpected behavior or a feature is broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Percentages seem to be getting mangled
2 participants