-
Notifications
You must be signed in to change notification settings - Fork 12.4k
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
BarGauge: Fixed an issue where the cell color was lit even though there was no data. #39574
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did almost add a comment during my last review, that we might extract this to a testable external function, but then I didn't because it was such a minor change.
And then you did it anyway, impressive ⭐ 🤩 🤯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome fix! 💯
* BarGauge: Set cell color to off if numeric value is NaN * BarGauge: Pull getCellColor out into a pure function and add unit tests (cherry picked from commit 6948dbe)
@ashharrison90 don't forget to add |
Example |
) * BarGauge: Set cell color to off if numeric value is NaN * BarGauge: Pull getCellColor out into a pure function and add unit tests (cherry picked from commit 6948dbe) Co-authored-by: Ashley Harrison <[email protected]>
What this PR does / why we need it:
positionValue > NaN
resolves to falseNaN
to mark the cell as offWhich issue(s) this PR fixes:
Fixes #39548
Special notes for your reviewer: