Not able to disable tooltip nvD3.js
Asked Answered
D

1

5

I am trying to disable tooltip from the discrete bar chart which is the most easiest thing to do. But still its not working. I tried chart.tooltip(false), but it gives chart.tooltip function not defined console error. And because i am using plain nvD3 and not angular-nvD3 directives, if I use interactive(false), it gets ignored.

I did installed nvD3 using bower, is that the reason for it acting that way. am i missing any of the library required for the tooltip? please help.

link(rel="stylesheet", href="_assets/bower/nvd3/build/nv.d3.css")
script(src="_assets/bower/d3/d3.js")
script(src="_assets/bower/nvd3/build/nv.d3.js")
Dactyl answered 12/4, 2016 at 21:34 Comment(0)
W
9

Instead of

chart.tooltip(false)

do

chart.tooltips(false) //this is deprecated

chart.tooltip.enabled(false)//this is latest

example here

doc refer

Wilbanks answered 13/4, 2016 at 0:10 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.