gpt4 book ai didi

javascript - 如何在 Flot 中显示没有 Y 轴的水平网格线?

转载 作者:行者123 更新时间:2023-11-30 17:00:34 26 4
gpt4 key购买 nike

我一直在搜索 flot docs以及显示水平(y 轴)网格线而不绘制垂直轴值(例如 0 到 100)但没有任何成功的方法的示例。

没有 y 轴值有没有办法做到这一点?

enter image description here

而不是这个: enter image description here

最佳答案

是的,使用 tickFormatter:

yaxis: {
tickFormatter: function(){return ''}
}

参见 https://github.com/flot/flot/blob/master/API.md#customizing-the-axes .

Fiddle

关于javascript - 如何在 Flot 中显示没有 Y 轴的水平网格线?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28951966/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com