Javascript – Why the legend merged with the d3.js line chart when zooming?
I am trying to add a legend to the d3.js example named Line chart with zoom in d3.js 1°) I added the script: // Add legend rectangle line.append('rect') .attr('x', width - 80) .attr('y', 90) .attr('width', 10) .attr('height', 10) .style('fill', "steelblue");…