antvis / antvis/G2

[Bug]: 双轴图的图例分类异常

Open
#7,294 1 comment 0 reactions 0 assignees View on GitHub
waiting for maintainer
Dominant language
TypeScript
Stars
12.6k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug / 问题描述

柱线混合的双轴图,图例里显示的都是柱状图的图例

Image

### Reproduction link / 复现链接

https://g2.antv.antgroup.com/examples/general/dual/#dual-axis-line-bar

### Steps to Reproduce the Bug or Issue / 重现步骤

官方示例里可直接复现
https://g2.antv.antgroup.com/examples/general/dual/#dual-axis-line-bar

### Version / 版本

Please select / 请选择

### OS / 操作系统

- [ ] macOS
- [ ] Windows
- [ ] Linux
- [ ] Others / 其他

### Browser / 浏览器

- [ ] Chrome
- [ ] Edge
- [ ] Firefox
- [ ] Safari (Limited support / 有限支持)
- [ ] IE (Nonsupport / 不支持)
- [ ] Others / 其他

Contributor guide

Open the contributing guide

Research direction

Open the dual-axis line-bar example at https://g2.antv.antgroup.com/examples/general/dual/#dual-axis-line-bar and reproduce the legend behavior described in the issue. Trace the example's legend configuration and chart setup, then verify that the legend correctly classifies and displays both the bar and line series.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.