-
Notifications
You must be signed in to change notification settings - Fork 286
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
All Traffic pie chart tooltip is too far away to click link #2737
Comments
This component will use the new |
I a fair bit of time today going through Google Chart issues in GitHub/Google Code archives, Stack Overflow, etc. Unfortunately this seems to be an issue with Google Charts that we can't resolve ourselves, if we want to maintain the hover/focus state only. One thing to note is that this problem is especially bad on wider screens, because the chart is set to a width of 100%: But even on smaller screens or with the width of the chart locked to a max of The issue is that the The only way to fix this is to change the trigger to "selection" instead of focus. Then the tooltip stays for as long as the But I think that's the best, most flexible solution, so it's what I've proposed in the IB. |
@tofumatt Given the circumstances, I think this is a quite elegant solution - let's try that! We should ensure this doesn't modify anything about the "Others" slice though, which has logic to not really make it selectable. IB ✅ |
@tofumatt I'll assign to you since that probably makes most sense as you've already spent considerable time in this and the V2 component. |
QA Update: Fail ❌@tofumatt This works fine for every other slice other than those that has a link in the tooltip, i.e. Here's a screencast Screen.Capture.on.2021-02-25.at.22-10-41.mov |
@aaemnnosttv Opened #2878 to address the above, ready for review. |
QA Update: Fail ❌@felixarntz @aaemnnosttv I'm afraid that this solution does not fix the problem. On first load of the pie chart, if I hover over the But, if you select another slice first, e.g. This is because the You can see that in action on this screencast. Screen.Capture.on.2021-02-26.at.08-25-46.mov |
@wpdarren This is expected behavior now:
Can you confirm this is the current behavior? If so, it should be good to go. |
@felixarntz this is the current behaviour, so since this is expected, I will move this on. QA Update: Pass ✅
|
Bug Description
For the new All Traffic pie chart, the tooltip is displayed slightly away from the slice. So, when you move your mouse to go over the tooltip to click on the link, it closes. In the example below the blue slice doesn't have a link but if it did I would not be able to click it. I suspect it might also depend on the screen size.
Steps to reproduce
Screenshots
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
GoogleChartV2
:Test Coverage
Visual Regression Changes
QA Brief
1400px
wide.Changelog entry
The text was updated successfully, but these errors were encountered: