gpt4 book ai didi

javascript - 去掉 c3.js 上的中间线

转载 作者:行者123 更新时间:2023-11-28 18:14:16 24 4
gpt4 key购买 nike

谁知道怎么去掉图片上的这条线?我在开发者工具上找不到它。仅当我将鼠标悬停在其中一个栏(任何栏)上时它才会出现。

我想尝试的是:

 d3.selectAll("the nane of the line blah blah").filter(function(d) {
return d === 0;
}).remove();

enter image description here

最佳答案

那是一条网格线。 c3.js 解决方案就是:

grid: {
x: {
show: false
}
}

或者,使用 d3 选择,选择它们所属的组(其类别为“c3-xgrids”)并删除该组:

d3.select(".c3-xgrids").remove()

如果您只想选择一行,则其类名为“c3-xgrid”。

关于javascript - 去掉 c3.js 上的中间线,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41023006/

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