Saturday, 24 August 2013

d3.js - blank object when applying y-axis scale

d3.js - blank object when applying y-axis scale

I'm trying to apply a scale to y-axis in my chart, but when I do it I get
a blank svg object. I did the same thing with the x-axis and it's working
fine.
Problem happens when you uncomment this section
// .y(function(d) {
// return yScale(d[1])
// })
http://jsfiddle.net/MgwR5/
Could anyone tell me what I'm doing wrong?

No comments:

Post a Comment