google / google-visualization-issues

288 stars 35 forks source link

BarChart Tooltip not triggered on label #2692

Open wilhei opened 5 years ago

wilhei commented 5 years ago

https://jsfiddle.net/2d0kbLnm/40/

The tooltip is only triggered on hovering the bar of the chart. It is not triggered on hovering the label of the bar. So in this example it is not possible to show the tooltips of the small values.

Also a focusTarget: 'category' has a lot of side effects. E.g. it gets bigger, so it overlaps with the bar, what enforces a flickering.

Is there any possibility to trigger the tooltip on hover over the label of each bar?

Thank you.

mathias-work commented 4 years ago

Problem still exists. Is there any outlook regarding a potential fix?

dlaliberte commented 4 years ago

There is not necessarily any annotation label displayed in order to use that to trigger tooltip display. But note that annotations can actually have their own tooltip if you use the role 'annotationText'. We could make the default or custom tooltip available for annotations as well, if there is not any annotationText role to override it.

So, I agree that we need to expand the mouse sensitivity for small values that are currently being missed.