Line 47: | Line 47: | ||
.projection(function(d) { return [d.y, d.x]; }); | .projection(function(d) { return [d.y, d.x]; }); | ||
− | var svg = d3.select(" | + | var svg = d3.select("body").append("svg") |
.attr("width", width + margin.right + margin.left) | .attr("width", width + margin.right + margin.left) | ||
.attr("height", height + margin.top + margin.bottom) | .attr("height", height + margin.top + margin.bottom) |
Revision as of 13:47, 14 October 2016