-
Notifications
You must be signed in to change notification settings - Fork 35
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
Tooltip may appear below the mouse pointer causing flickering #2162
Comments
Any news on this? I'm having the same problem on my application with pieCharts |
I too have run into this issue. Any suggestions? |
I still have not been able to find the issue, but this bug is not present in v42 (the current version is 44). I simply altered this line from:
to:
It is now working as expected and not flickering. |
Any update on this issue? Is this going to be addressed in the next version? Does anyone have a good workaround other than loading version 42? This is a big pain point for us on this project. |
+1 on what @patawa91 said. |
I think this is what is happening:
If the logic for #3 is altered to either ignore the existence of the popup and detect the chart element underneath, or to include the popup itself as a chart element that activates the popup, then I think that would prevent the flicker. |
Firefox 47. Same behavior here. It is also failing on https://developers.google.com/chart/ |
Any estimates on solving this ticket as it totally breaks UX, especially for Pie charts. |
I'm really hoping this bug will get prioritized soon, and make it into the next release. |
I'd also like this to be fixed. The pie chart is such a fundamental chart and this is not the best bug to have on it. Thanks |
Any update on this issue, I am also facing the same problem, I can't use version 42 as I am using Gantt Chart. |
A workaround I've found is to set pointer-events: none on the tooltip in your css:
|
Thanks @kenseals, that works, but I had to modify the selector as follows:
|
Thanks mhingston & kenseals, it solved the issue!! |
Doesn't take a genius to know that you have to install the mouseover event on the tooltip as well for this not to happen. |
Thanks mhingston & kenseals, it solved the issue!! |
1 similar comment
Thanks mhingston & kenseals, it solved the issue!! |
just a heads up for @mhingston's solution. This will literally disable any svg interaction including d3's force graph. If Google chart is your only concern, go for it. Otherwise, don't forget to test your other svg visualization. |
+1 |
That worked! This problem was plaguing my graphs and making them impractical to use, now they are working as intended. |
i think this way is better |
pointer-events: none will not work on IE10. If anyone has faced this issue in IE10 please let me know the way to resolve it. |
Has there been any process to this? I'm currently using google-chart via WebElement (https://www.webcomponents.org/element/GoogleWebComponents/google-chart). Thus, it's contained within a shadow DOM and using the presented workaround does not really work without modifying the web component itself. |
Also a bit surprised that this hasn't been solved. |
You can click the link below to a Bug/issue raised with Google. The more votes the more chance of it being resolved in the platform. |
You can also prevent the flicker by setting the following option: This avoids the problem by eliminating hover from the scene altogether by requiring clicks on the chart (or legend) to see the tooltip. I didn't like the idea of messing with the CSS to fix the flicker, and not a fan, in any case, of hover behavior due to limitations on touch screens. Thought some of you may prefer this alternative solution. |
tooltip can be showed into a 'g' container but also in a 'div' container. Then this way also works: .google-visualization-tooltip { pointer-events:none; } This rule could be included in the file: |
Any news on this annoying issue? |
This is still an issue. Disabling the tooltip on hover is a work around, but would really like to see it addressed. |
this does not work on angular. One solution is to call this function after every call of the draw function. fixedTooltipFlickering(){ |
This issue is still existing in September 2021...😞 To make the fix work with <style >
svg > g:last-child > g.google-visualization-tooltip {
pointer-events: none;
}
</style> As it's not scoped, you can normally place it in any of your |
Just modify your css file with this line |
Applies the fix detailed here: google/google-visualization-issues#2162 (comment)
Applies the fix detailed here: google/google-visualization-issues#2162
What The Google tooltip blinks when the mouse is over Google Pie charts. Why - Mousing over the chart activates the popup; - The popup is superimposed on top of the chart and under the pointer. This situation activates the flicker; - The pointer is no longer over the chart (because it's over the popup), and therefore the popup is removed; - This creates a loop (Go to 1). The reason is described at google/google-visualization-issues#2162. How Removes pointer events from Google tooltips as suggested in google/google-visualization-issues#2162".
What The Google tooltip blinks when the mouse is over Google Pie charts. Why - Mousing over the chart activates the popup; - The popup is superimposed on top of the chart and under the pointer. This situation activates the flicker; - The pointer is no longer over the chart (because it's over the popup), and therefore the popup is removed; - This creates a loop (Go to 1). The reason is described at google/google-visualization-issues#2162. How Removes pointer events from Google tooltips as suggested in google/google-visualization-issues#2162".
This worked for me. Thanks! |
I was facing the same issue in one of my projects and tried this to fix the flickering problem. It is resolved for me.
|
I also face the same issue on my vuejs 3 project and solve it using this solution
|
Greetings,
I noticed in one of the diffchart samples that the tooltip might appear below the mouse arrow and cause a really bad flickering (extremely bad on FF 43.0.1 and moderately bad on Chrome 48), you should be able to see this on your own samples on this page:
https://google-developers.appspot.com/chart/interactive/docs/gallery/diffchart
EDIT: forgot to mention which example, I was referring to the diff pie chart, the one witih inner whiter values, if you hover on top of the inner values you will notice the problem
The text was updated successfully, but these errors were encountered: