Hello
Please, I have written my code, on codepen, to some extent and it’s suppose to be rendering, but nothing is showing. Here is my codepen link
Any effort will be appreciated.
Thanks
Hello
Please, I have written my code, on codepen, to some extent and it’s suppose to be rendering, but nothing is showing. Here is my codepen link
Any effort will be appreciated.
Thanks
I would really appreciate your comment. Thanks
Why are you using d.Place
for your x-coordinate?
svg.selectAll("circle")
.data(data)
.enter()
.append("circle")
.attr("class", "dot")
.attr("r", 6)
.attr("cx", function (d) {
return x(d.Place);
})
.attr("cy", function(d) {
return y(d.Time);
})
Shouldn’t you be plotting years along the x-axis? If you change it to d.Year
, it appears to plot correctly.
If it helps, this is what mine looks like: