block by pbogden 4d2f9cec7ce6e8029cf0

binesh5

Full Screen

Small changes to Binesh’s block: http://bl.ocks.org/geoatlantic/85a2c8083e9808eebeb0

Original error in console:

Invalid value for attribute transform=”translate(NaN,0)”

This indicates that you’re incorrectly setting the value of the “g” attribute, which is used by d3.svg.axis. It turns out that you were using the wrong scale. I changed it from ordinal to linear, which is what Suzee used. You could use the ordinal scale instead, but then you’d have to be careful how you set the scale’s domain.

I made a few other changes too, as indicated in the code.

My recommendation is that you fix up the labeling and styling, and make sure you understand how things work. You could also see if you can change back from linear to ordinal scale for the xAxis.

index.html