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.
有人知道我如何隐藏辅助 y 轴的水平网格线(右)?
有时,问题的图片比长篇描述更容易理解:
谢谢
看到你的代码会有很多好处。无论如何,我认为你应该为适当的轴设置showGridline选项,你就完成了。tickOptions
showGridline
tickOptions
axes: { grid: { drawBorder: false }, yaxis: { tickOptions: { showGridline: false } } }
上述解决方案首先在这里提出。
在你的情况下,这将是y2axis你所追求的。
y2axis