I need to manipulate the text elements of the first and last tick of an axis to bring them more towards the center.
text
I am trying to select them, one at t
Using .filter() with a function also works selection.filter(filter) :
.filter()
var gridlines; gridlines = svg.selectAll('.gridlines'); gridlines.filter(function(d, i) { return i === gridlines.size() - 1; }).attr('display', 'none');