I am trying to help format this questions code:
Specifically I'm trying to make it code format for this section.
var svg = d3.select("#body").append("div") .attr("class", "chart") .style("width", w + "px") .style("height", h + "px") .append("svg:svg") .attr("width", w) .attr("height", h) .append("svg:g") .attr("transform", "translate(.5,.5)");
When I do it though, it seems to have a weird effect of simply indenting it and removing styles from some of the other code.
I just tried copy and pasting it here and it works fine so I'm not sure why it will not work when I try to edit it. Not sure if this is a bug or if it's just me. Tagging as bug for now but maybe someone could see if they are having the same problem as me? Thanks.