Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 xaxis 上刻度线的宽度上遇到了一些问题。似乎它们会自动调整以填充 div 的宽度 - 如果我想覆盖它怎么办?
问候,
雅各布
我遇到了同样的问题,但在文档中找不到任何有用的东西。在绘制图形之前,我通过根据数据数组大小动态更改 div 的宽度来解决它。
您可以对 x 轴使用 Ticks 选项,并为其提供您想要放入的值的数组。它解决了我的问题。