3
After updating the version of nv.d3.min.js
for version 1.8.6
, when I hover over Chart shows countless errors in function return, and the tooltip
stopped working too, read various manuals and materials including github, and could not find a solution.
Continuing the researches I found that for some reason in the parameter this.namespaceURI is being passed as undefined. However still no solution.
I found that the problem is exactly in creating the tooltip, the errors were interrupted with the insertion of the line
Chart.tooltip.enabled(false); however I need to use tooltip and do not know how to solve.
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 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 took the code from the domain: https://d3js.org/d3.v3.js