apache / apache/echarts

[Bug] MarkPoint does not auto clip to hide

Open
#17,060 2 comments 0 reactions 0 assignees View on GitHub
bug en pending waiting-for: community
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

5.3.2

### Link to Minimal Reproduction

_No response_

### Steps to Reproduce

After MarkPoint uses **y** to set the offset, moving the dataZoom beyond the area will not automatically hide

```
option = {
xAxis: {
type: 'category',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
},
yAxis: {
type: 'value'
},
dataZoom: [{
startValue: 'Wed'
}],
series: [
{
data: [150, 230, 224, 218, 135, 147, 260],
type: 'line',
markPoint: {
data: [{
y: '10%',
value: 230,
coord: ['Tue']
}]
}
}
]
};
```
![image](https://user-images.githubusercontent.com/22854075/168983553-9d5513ba-f9ba-4183-8431-aa72cdbc97d3.png)

### Current Behavior

MarkPoint is displayed outside the area

### Expected Behavior

Auto hide after MarkPoint goes out of area

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.