antvis/G2
The issue has been closed
分组柱状图划过图例图形消失 #2554
15531400827 posted onGitHub
- G2 Version: 4,0,7
- CodePen Link: https://codesandbox.io/s/intelligent-grass-2i4vd?file=/index.html
示例中利润应该是总金额的一部分, 所以不能使用堆叠柱状图,使用分组柱状图去掉 .adjust([ { type: 'dodge', marginRatio: 0, }, ]); 实现想要的结果, 但是滑过利润图例会发现图形消失, 应该是划过图例后图形zIndex设置的问题, v3中同样实现方法是没有问题的