antvis / antvis/G2Plot

🤔请问如何给一个多折线趋势图的每一种颜色添加一个渐变色?

Open
#3,704 1 comment 0 reactions 0 assignees View on GitHub
Question
Dominant language
TypeScript
Stars
2.7k
Forks
591
PR merge metrics
No merged PRs in 30d

Description

请问如何给一个多折线趋势图的每一种颜色添加一个渐变色?
![image-20231115104151848](https://github.com/antvis/G2Plot/assets/123848116/ad359e1d-e995-479e-b04d-0508c3236dbf)

目前官方文档给的只有针对一种颜色的,比如单折线图,像多折线图的话通过color应该设置不了,但是通过下面这种又无法设置多种颜色,现在有办法将多种颜色与颜色渐变结合吗?
area: {
style: {
fillOpacity: 0.15,
fill: 'l(270) 0:#ffffff 1:#1890ff',
},
},

Contributor guide

Open the contributing guide

Research direction

The issue names a multi-line chart and the area.style.fillOpacity and fill settings, but no repository file or test entry point. Start by locating the multi-line chart and area-style documentation or examples, then check whether per-series gradient colors are supported. Done means confirming a workable configuration or defining the needed behavior clearly.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.