barchart tooltip position

1,068 views
Skip to first unread message

Moritz Beber

unread,
Nov 28, 2014, 9:39:27 AM11/28/14
to google-visua...@googlegroups.com
Dear all,

I'm using a dashboard with a BarChart and custom HTML tooltip. The focus target of the tooltip is the category. This used to work nicely but since the latest release, the tooltip appears dead centre under the tooltip. That means I can only get the next tooltip when hovering the mouse over a bar outside the current tooltip. So it covers a couple of bars which is very annoying.

I have found the following (very similar) solutions to shift the tooltip position:
http://stackoverflow.com/questions/24795432/how-to-change-pop-up-location-of-google-charts-tooltip
https://www.mail-archive.com/google-visua...@googlegroups.com/msg26167.html

However, I'm not sure if I should add the listener to the chart or dashboard in my case? The listener function seems to be executed either way. When I hover over the bars I do get an error, though: "TypeError: tooltip is null". So no div with class google-visualization-tooltip is found by the selector in the container. When I check the variable container in the linked solutions, it turns out to be an empty div.

All I want to do is have the tooltip appear next to the mouse pointer. Can anyone help, please?

Cheers,
Moritz

Daniel LaLiberte

unread,
Dec 1, 2014, 10:07:28 AM12/1/14
to google-visua...@googlegroups.com
Moritz,

This tooltip position problem is a known bug, with a workaround that you might be able to use described here: https://groups.google.com/d/msg/google-visualization-api/kJQeWeR6188/Zo6EkwPXPNkJ

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.



--
dlaliberte@Google.com   5CC, Cambridge MA
daniel.laliberte@GMail.com 9 Juniper Ridge Road, Acton MA

Moritz Beber

unread,
Dec 2, 2014, 4:22:33 AM12/2/14
to google-visua...@googlegroups.com
Thank you. That's an easier option.


On Monday, 1 December 2014 16:07:28 UTC+1, Daniel LaLiberte wrote:
Moritz,

This tooltip position problem is a known bug, with a workaround that you might be able to use described here: https://groups.google.com/d/msg/google-visualization-api/kJQeWeR6188/Zo6EkwPXPNkJ
On Fri, Nov 28, 2014 at 9:39 AM, Moritz Beber <moritz...@gmail.com> wrote:
Dear all,

I'm using a dashboard with a BarChart and custom HTML tooltip. The focus target of the tooltip is the category. This used to work nicely but since the latest release, the tooltip appears dead centre under the tooltip. That means I can only get the next tooltip when hovering the mouse over a bar outside the current tooltip. So it covers a couple of bars which is very annoying.

I have found the following (very similar) solutions to shift the tooltip position:
http://stackoverflow.com/questions/24795432/how-to-change-pop-up-location-of-google-charts-tooltip


However, I'm not sure if I should add the listener to the chart or dashboard in my case? The listener function seems to be executed either way. When I hover over the bars I do get an error, though: "TypeError: tooltip is null". So no div with class google-visualization-tooltip is found by the selector in the container. When I check the variable container in the linked solutions, it turns out to be an empty div.

All I want to do is have the tooltip appear next to the mouse pointer. Can anyone help, please?

Cheers,
Moritz

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@googlegroups.com.

To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.



--
dlali...@Google.com   5CC, Cambridge MA
daniel.l...@GMail.com 9 Juniper Ridge Road, Acton MA
Reply all
Reply to author
Forward
0 new messages