user1410270
user1410270

Reputation: 353

Manually positioning ticks on axis - D3

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

Upvotes: 3

Views: 7863

Answers (1)

Lars Kotthoff
Lars Kotthoff

Reputation: 109232

See the documentation -- axis.tickValues().

Upvotes: 5

Related Questions