The issue has been closed
如何去掉和最下面的lindDash

不想要最下面的和横坐标重合的那个lineDash,如何去掉,在文档上没找到配置项
chart.axis('Value', {
grid: {
line: {
style: {
stroke: 'red',
lineWidth: 1,
lineDash: [2, 2],
},
},
},
});
posted by PossibleMaybe about 4 years ago
posted by visiky about 4 years ago 
可以使用回调的方式处理下,判断 0 刻度线
可以详细点嘛,我去看了下文档,还是没看到哪个属性可以用回调方式
posted by PossibleMaybe about 4 years ago
chart.axis('Value', {
grid: {
line: {
style: (points, val) => {
if(!val) return null;
return {lineDash: [2, 2], stroke: 'red'}
}
},
},
});
试了好久,这样写才行,但是在文档上上没看到这个style可以是函数,至于接收的参数只能靠猜
posted by PossibleMaybe about 4 years ago