I am using the NVD3 library for my project, and I wrote the following code.
var chart = nv.models.lineChart() .useInteractiveGuideline(true) .margin({top: 50, right: 50, bottom: 50, left: 50}) .tooltipContent(function (key, y, e, graph) { console.log("helo"); return "hello"; });
The expected result should be to show hello on the mouse. But I do not understand, instead I get a default prompt.
Please let me know the mistake I am making.
source share