最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Manually positioning ticks on axis - D3 - Stack Overflow

programmeradmin6浏览0评论

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 badges
Add a ment  | 

1 Answer 1

Reset to default 5

See the documentation -- axis.tickValues().

发布评论

评论列表(0)

  1. 暂无评论