Using D3.js version 4, is there a way to get an array of the values for each tick on an axis?
Edit:
From D3 documentation
# axis.tickValue
If you have a reference to the axis, you can use:
axis.scale().ticks()
If you want them all formatted out, I'd get them from the DOM:
d3.selectAll(".tick>text") .nodes() .map(function(t){ return t.innerHTML; })
Running code: