apache / apache/echarts

[Feature] Implement custom value range segmentation with corresponding color mapping using continuous visualMap

Open
#20,858 2 comments 0 reactions 0 assignees View on GitHub
en new-feature pending
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### What problem does this feature solve?

The display format is similar to the image below

![Image](https://github.com/user-attachments/assets/56a8c17b-b4bc-4a8d-a9cd-c13a3de377b2)

### What does the proposed API look like?

visualMap: {
min: 0,
max: 100,
calculable: true,
realtime: false,
inRange: {
color: ["#313695", "#4575b4", "#74add1", "#abd9e9", "#e0f3f8", "#ffffbf", "#fee090", "#fdae61", "#f46d43", "#d73027", "#a50026"],
value:[[0,0.1],[0.1,0.2],[0.2,0.3],[0.3,0.7].........,[16.1,17.2]]
}
}

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.