antvis / G2

📊 The concise and progressive visualization grammar.
https://g2.antv.antgroup.com
MIT License
12.11k stars 1.59k forks source link

双轴图 不能分别设置柱线的图例类型 #6024

Open Jungzl opened 9 months ago

Jungzl commented 9 months ago

问题描述

双轴图柱线混合图表不能区分图例类型,上一个大版本会自动根据类型区分,v5版本会被children内最后一个图的类型覆盖,无法独立设置 itemMarker

重现链接

https://codesandbox.io/p/sandbox/focused-tdd-lv35pq?file=%2Findex.ts

重现步骤

No response

预期行为

期望看到不同图例类型,实际是相同的

平台

屏幕截图或视频(可选)

v4: image v5: image

补充说明(可选)

No response

pearmini commented 9 months ago

可以参考一下这个例子:https://github.com/antvis/G2/blob/v5/__tests__/plots/interaction/weather-line-legend-mark.ts