Is there a way to increase the hover area to see the tooltip? #3597
-
I frequently make use of tooltip to see the exact value associated with a data point (e.g., in a line graph etc). I am noticing that the hover area to get the tooltip is very small - unless you keep your mouse pointer at the exact point where the data point is - it is hard to bring up the tooltip. Are there any configurations that I can pass to increase the hover area such that when I am in the vicinity of the data point, I can get to view the tooltip. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I think the easiest way to accomplish this is to assign the tooltip encoding to a second layer where the points are bigger and have an opacity of 0. |
Beta Was this translation helpful? Give feedback.
-
I agree that this would be convenient, but it is something that would need to be implemented in Vega-Lite first, so feel free to follow / add to the discussion in vega/vega-lite#6851. In the meantime, the workaround suggested by @kgoodrick-uu is what I occasionally use myself as well. |
Beta Was this translation helpful? Give feedback.
I think the easiest way to accomplish this is to assign the tooltip encoding to a second layer where the points are bigger and have an opacity of 0.