0
votes

I'm working on a Google chart, and I wanted to use custom HTML tooltips for it, however Google charts doesn't seem to offer any good API for positioning tooltips relative to the points on the charts, such as "top-left" or "bottom-center", that other libraries offer.

Tooltip.

For instance, I'd like this tooltip to centrally above the highlighted dot, and not floating to the left. Any known way of doing that?

1

1 Answers

-1
votes

Since Google still doesn't offer a solution for this, I just used the CSS transform: translateX property, with a value of half the tooltip size. Not ideal, but it works.