D3 function only iterating though last point of data in an array.
问题 For the following lines of code, once I enter my locationArray into the data, the iteration runs for the length of the array, but starts on the final iteration such that i is always = 1 (the array has a length of two nested arrays). Why won't it start with array[0]? var canvas = d3.select("#map-canvas"); setTimeout(function(){ console.log(canvas) canvas .selectAll(".marker") .append('svg') .attr('width', 400) .attr('height', 400) .style("position", "relative") .style("right", 150) .style(