有什么方法可以隐藏默认的yaxes行,并且仅在react-chartjs-2中显示yaxes上的值?
我对ChartJS有一点经验,但我无法找到隐藏默认行的方法。我在这里添加此图像,我需要修复。 我需要像这样隐藏线条 https://i.sstatic.net/uxmpi.png 。 我需要像这样
I have a little experience with chartjs but I am unable to find a way to hide the default line. I'm adding this image here which I need to fix.
I need to hide the line like this one
https://i.sstatic.net/UXMpi.png.
I need to make it like this one
https://i.sstatic.net/Phsos.png
If anyone knows how to do this, please let me know. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将显示在X轴的网格设置中和drawborder的两个轴中的false设置为false:
set display to false in the grid settings of the x axis and drawBorder to false in both axes like so: