Reputation: 19830
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
Reputation: 1150
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