antvis / antvis/G2

G2新版本是否可以支持设置label颜色和绘制的折线设置同一个颜色,其他类似图表同理

Open
#6,156 4 comments 0 reactions 0 assignees View on GitHub
OSCP
Dominant language
TypeScript
Stars
12.6k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

### 问题描述

目前G2折线图渲染出来后无法设置「折线」和「折线对应的label」同一个颜色
因为无法感知到绘制的折线是什么颜色。 在多折线图,柱线混合图等等图表中都有这个问题
![image](https://github.com/antvis/G2/assets/80903923/3cd29394-83a8-4f7b-b7aa-54ba6d8d8a4e)

### 重现链接

_No response_

### 重现步骤

_No response_

### 预期行为

5.x版本是否可以支持「折线的label」「感知折线是什么颜色」,以便于在设置label相同颜色,其他类似场景同理
image

### 平台

- 操作系统: [macOS, Windows, Linux, React Native ...]
- 网页浏览器: [Google Chrome, Safari, Firefox]

### 屏幕截图或视频(可选)

_No response_

### 补充说明(可选)

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reviewing G2 5.x's label and line color configuration and reproduce the request with a multi-line chart and a mixed line-and-column chart. The issue provides no reproduction link, files, tests, or entry points; done should mean labels can use the corresponding drawn line color in these and similar chart scenarios.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.