apache / apache/echarts

[Question] How to make a Color of link gradient

Open
#20,980 3 comments 0 reactions 0 assignees View on GitHub
en support topic: graph
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### What problem does this feature solve?

Hi,
I have a graph with a lot of link ,
is it possible to make the link gradient base of the Source and target
Like the source of the link is the start of the gradient with color 1 and the target is the end with color 2

(Right now its a basic gradient not related to the source or target)
![Image](https://github.com/user-attachments/assets/96697e1c-17bf-4e82-8933-4a40bdbced40)

### What does the proposed API look like?

`lineStyle:{
color: gradient( {sourceColor}, {targetColor} )`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.