Piotr Stapp
Piotr Stapp

Reputation: 19830

Tooltip location in nvd3 multiBarHorizontalChart

Is there a way to change tooltip location in multiBarHorizontalChart in nvd3.js library? It shows always on the left side of current bar, but I would like to localize it when mouse pointer is.

Upvotes: 0

Views: 559

Answers (1)

You can try using the gravity option:

Description: Can be 'n','s','e','w'. Determines how tooltip is positioned. Input Type(s): string Default: w Example(s): chart.tooltip.gravity("n")

That's how I was able to get mine to work. Docs here.

Upvotes: 1

Related Questions