apache / apache/echarts

[Feature] gauge color steps in {progress: itemStyle: color and borderColor}

Open
#21,452 0 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?

introduce color segments (available in gauge axisLine) in gauge progress. Refer to [#15471](https://github.com/apache/echarts/issues/15471.)

Segments should look like this:
Image

There has been an answer by @Ovilia on the issue linked above but that covers color stops in gauge.axisLine and not in gauge.progress.

### What does the proposed API look like?

```
progress: {
itemStyle: {
color: [
[0.25, 'green'],
[0.5, 'yellow'],
[0.75, 'red']
]
}
}
```
and accordingly for borderColor

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.