Example of the code i\'m using: http://jsfiddle.net/BiaoMadeira/L2yhtpzw/
var svg = d3.select("#body").append("svg").attr("width"