F2
F2 copied to clipboard
请问多条折线怎么设置层级问题?
三天折线, 需要设置其中一条层级最高,现在支持吗
请问你解决这个问题了吗 我这边也遇到了同样的问题
chart
.line()
.position('time*value')
.color('channel', (item) => {
const idx = idArr.indexOf(item);
return colorEnum[idx];
})
.shape('smooth')
.style('channel', {
zIndex: (channel: any) => {
const idx = idArr.indexOf(channel);
const indexArr = [99999, 0];
return indexArr[idx] || 0;
},
});
文档看了几遍,不行,也不会支持,就因为数据结构特么设计有问题,要层级最高,只能把数据放最后