score:1

Accepted answer

Yes, I updated the fiddle. https://jsfiddle.net/o7sj0jg5/3/

Just add

.nice()

to the definition of your y-scale. https://github.com/mbostock/d3/wiki/Quantitative-Scales

score:3

The quick and easy way would be to bump the domain on the y axis by a small factor, like:

y = d3.scale.linear().domain([0, d3.max(dataset) * 1.2]).range([h, 0])

Related Query

More Query from same tag