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
Migrations: Graph (old) percent stacked #84335
Conversation
// TimeSeries currently uses 0-1 for percent, so allowing zero leaves only top and bottom ticks. | ||
// removing it feels better. probably should fix in TimeSeries, but let's kick it down the road | ||
if (y1.decimals === 0) { | ||
delete y1.decimals; | ||
} |
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.
likely controversial, but this is much simpler than fixing TimeSeries decimals setting in percent stacked mode to understand that 0 decimals is specifically in the 0-100 and not 0-1 range. i think generally this will do the correct thing. let's see what feedback we get before dedicating more time to this than needed.
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 - maybe it worth adding a few tests covering the color / other fix in this PR? :)
reverted for now. will do in separate PR or handle this properly in the TimeSeries panel instead of migration code. |
Hello @leeoniya!
Please, if the current pull request addresses a bug fix, label it with the |
This PR must be merged before a backport PR will be created. |
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.
Builds and behaves locally as expected.
(cherry picked from commit d1b6784)
Fixes #84263
test with dashboard in #84263 (comment)
this also switches to using hex colors to fix the hover point stroke getting incorrect color due to some migrated colors being
rgb()
and ouralpha()
setting function expects#hex
color strings.