apache / apache/echarts

[Bug] Visual Map display Error

Open
#18,386 6 comments 0 reactions 0 assignees View on GitHub
bug en topic: visualMap
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

5.4.0

### Link to Minimal Reproduction

https://github.com/2796673723/echarts-visualmap

### Steps to Reproduce

I want to set different colors inside and outside of a range by using `visualMap.` Examples options are as follows:
```javascript
{
show: false,
pieces: [
{
gte: 0,
lte: limit,
color: '#4A90E2',
},
],
outOfRange: { color: '#FF0000' },
}
```

### Current Behavior

The line at the bottom appears in two colors.
![image](https://user-images.githubusercontent.com/43328314/225247123-1a9ceeb8-f3e8-4143-b9c7-f03ba5a2c0d5.png)

### Expected Behavior

As per the settings I want the bottom line to only show blue.

### Environment

```markdown
- OS:Windows10
- Browser:Chrome 110.0.5481.180
- Framework:Vue@2.7
```

### 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.