I am making a graph using d3 and I wanted to put the ticks on my xAxis at positions which I would specify. For example if I wanted the ticks at the following positions,[-11,0,11,18,30,42], how would I do that?
Thanks
I am making a graph using d3 and I wanted to put the ticks on my xAxis at positions which I would specify. For example if I wanted the ticks at the following positions,[-11,0,11,18,30,42], how would I do that?
Thanks
Share Improve this question edited Nov 8, 2012 at 20:58 user1410270 asked Nov 8, 2012 at 20:53 user1410270user1410270 3534 silver badges14 bronze badges1 Answer
Reset to default 5See the documentation -- axis.tickValues()
.