I\'m making a bar chart with the following code:
svg.selectAll(\".bar\") .data(data) .enter().append(\"rect\") .attr(\"class\", \"bar\") .attr(\"
A thing that was counter intuitive and caused me to create some upside down graphs is the svg coordinates x,y start 0,0 at the top left corner, rather than the bottom left corner.