-
Notifications
You must be signed in to change notification settings - Fork 246
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: make the style for the state match the value being displayed when hov… #1214
Conversation
…ering over a point.
Please consider adding some descriptions & screenshots. |
Nice catch! Would you mind porting the fix also to the adaptive icon and name colours? They were changed together last, I think. (Maybe there's even more places where this should be fixed.) |
With this PR still there is this issue: Here we have 2 graphs, red & green.
Also, I honestly do not understand a purpose of |
I don't have the data to reproduce the issue above. Are we ok merging this fix and then having someone else fix this new case? |
Great! 👍
Yes, I would consider this a different issue. I will want to double-check before merging - and have Ildar's OK, too. But I don't see any major risk. |
Imho no risk at all, this is not a nuclear reactor. |
Ah, now I see why you're making the connection to the secondary state display, @ildar170975. Because the |
Ok, got it and tested it:
Which is what the PR does. |
@akloeckner , thanks for explaining. So, what I see during tests:
And whatever graph's whatever point I select - I see a proper color for a state, name, icon: This is very good. But shouldn't we see same behaviour for this config where a point's color is defined based on Sorry, if the question is silly. |
also clean up code
The question is far from silly. The behaviour you describe should be the correct one, I agree. So, I took some time to sort this sub-routine out. I pushed the changes to your branch, @galo2099 . I didn't mean to be intrusive. It was just the easiest way to get this into this PR. @ildar170975, is this what you were looking for? |
@akloeckner So, this seems to be a separate issue, will register it. I will continue testing new changes now. |
So, the latest change:
|
Thanks. I didn't realize this. Should be fixed now? |
Are you sure about the "same axis"? You have a scale on the right side of the graph. But: If the colors are fixed now, let's merge it. And investigate the lower and higher points separately. |
Thanks a lot, @galo2099! |
# [0.13.0-dev.2](v0.13.0-dev.1...v0.13.0-dev.2) (2025-02-15) ### Bug Fixes * adapt state color to tooltip properties ([#1214](#1214)) ([1142f25](1142f25)) * hide graph loading indicator when appropriate ([#1197](#1197)) ([d708d6a](d708d6a)) * legend unit percent w/o whitespace ([#1191](#1191)) ([9f5cfd9](9f5cfd9)) * more intuitive min_bound_range behavior ([#1136](#1136)) ([54d9875](54d9875)) * remove unused argument from getBoundary ([#1193](#1193)) ([f5261d9](f5261d9)) ### Features * add "tooltip--label" class ([#1202](#1202)) ([0d3c184](0d3c184))
🎉 This PR is included in version 0.13.0-dev.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
You are right! My mistake. Will retest. |
…ering over a point.
The color should match the color of the point being hovered, not the color of the latest point.
fixes #698