apache / apache/echarts

[Bug] visualMap outOfRange gets mixed with inRange on opaque inRange colors

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

Description

### Version

6.0.0

### Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?code=hU89iwIxEO39FUMs0qSI922OK2y2Ow6uFYu5XJRATJZNIiuy_91JVkUL8cELM4-895jQJhs8fMFhAtAvehtVHQH-MaGCJV9wAQ-fFVkGQc_-OuIsRtNZQ-pylNO-NQp41JiS6Xj5cambSQFPxGfiC_GV-EZ8J34Q57JWrYppZ2NG943tuW8MZjr4ZH0OObIxe2u9AnmasVcwk6fN-l_0GzKNAQQdXOjK3dOmYi654FNZQXNpJ9SzCCGnn_W9CFZtTcNAAKO4srHbAI1OZ4d_jvypy6aow2T4PAI&enc=deflate

### Steps to Reproduce

Create a continuous visual map with outOrRange colors set and inRange colors set to opaque colors.

### Current Behavior

Then the visualMap shows the mixture of the two gradients within the range while the actually applied colors in the plot are correctly displaying the inRange color gradient

In the following image, the inRange gradient should just be a (opaque) greyscale.

Image

### Expected Behavior

The visual map controller component should display what is applied in the plot.

### Environment

```markdown
- OS:Mac
- Browser: Chrome
- Framework: -
```

### Any additional comments?

_No response_

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.