Line 43: | Line 43: | ||
var margin = {top: 20, right: 120, bottom: 20, left: 120}, | var margin = {top: 20, right: 120, bottom: 20, left: 120}, | ||
− | width = | + | width = 460 - margin.right - margin.left, |
− | height = | + | height = 400 - margin.top - margin.bottom; |
var i = 0, | var i = 0, | ||
Line 56: | Line 56: | ||
.projection(function(d) { return [d.y, d.x]; }); | .projection(function(d) { return [d.y, d.x]; }); | ||
− | var svg = d3.select(#djxmfl).append("svg:svg") | + | var svg = d3.select("#djxmfl").append("svg: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:58, 14 October 2016