// Se define el título d3.select('#title') .append('h3'); // Se definen dimensiones var margin = { top: 10, right:10, bottom: 10, left: 40 }, width = 850 - margin.left - margin.right, height = 350 - margin.top - margin.bottom; // Se inserta el svg d3.select('body') .append('svg') .attr('width', width + margin.left + margin.right) .attr('height', height + margin.top + margin.bottom) .append('g') // .attr('transform', 'translate(' + margin.left + ',' + margin.top + ')')