nv.d3.min.js
to version 1.8.6
, when I hover over the chart there are countless errors in the return function, and tooltip
stopped working too, I read several manuals and materials including github, and I did not find a solution.
Continuing the searches I found that for some reason in the this.namespaceURI parameter is being passed as undefined. But still no solution.
I discovered that the problem is exactly in the creation of the tooltip, errors were interrupted with the insertion of the line
chart.tooltip.enabled (false); but I need to use the tooltip and I do not know how to solve it.
d3_selectionPrototype.append = function(name) {
name = d3.ns.qualify(name);
function append() {
return this.appendChild(d3_document.createElementNS(this.namespaceURI, name));
}
follows an example of the error that occurred.
Uncaught TypeError: this.appendChild is not a function
at append (http://localhost:52720/Content/js/plugins/nvd3/lib/d3.v3.js?20170731121208:794:19)
at Array.d3_selection_enterPrototype.select (http://localhost:52720/Content/js/plugins/nvd3/lib/d3.v3.js?20170731121208:1070:57)
at Array.d3_selectionPrototype.append (http://localhost:52720/Content/js/plugins/nvd3/lib/d3.v3.js?20170731121208:799:17)
at b (http://localhost:52720/Content/js/plugins/nvd3/nv.d3.min.js?20170731121208:14:5774)
at http://localhost:52720/Content/js/plugins/nvd3/nv.d3.min.js?20170731121208:14:6054
at Object.a.dom.write (http://localhost:52720/Content/js/plugins/nvd3/nv.d3.min.js?20170731121208:14:2071)
at c (http://localhost:52720/Content/js/plugins/nvd3/nv.d3.min.js?20170731121208:14:6037)
at Object.set (http://localhost:52720/Content/js/plugins/nvd3/nv.d3.min.js?20170731121208:14:10400)
at Function.a._calls.a._calls.(anonymous function).a.(anonymous function) [as hidden] (http://localhost:52720/Content/js/plugins/nvd3/nv.d3.min.js?20170731121208:14:15684)
at d3_dispatch.<anonymous> (http://localhost:52720/Content/js/plugins/nvd3/nv.d3.min.js?20170731121208:20:4287)
****** Problem solved. ******
I needed to update the d3v3.js file in the NVD3 > LIB directory, I got the code in the domain: link