javascript - D3: Uncaught TypeError: Failed to execute 'insertBefore' on 'Node': parameter 1 is not of type 'Node' -
trying figure out causing error in d3 code. here code snippet:
// add warning box if value exceeded mychart.append("g") .data(data) .enter().append(function(d) { // error on line of code if (d.days >= 20) { d3.select("#chart").append('div') .attr('class','redbox') } ;}) here error:
uncaught typeerror: failed execute 'insertbefore' on 'node': parameter 1 not of type 'node' i'm new d3, or direction can provided appreciated. should mention renders , want, error.
Comments
Post a Comment