apache / apache/echarts

After sampling not all series with same x-axis will display on single tooltip.

Open
#15,538 1 comment 7 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.1.2

### Steps to reproduce
```
myChart.setOption({
series:[
{
sampling: 'lttb',
type: 'line',
data: Array.from(new Array(2000)).map((x, i) => [i, Math.floor(Math.random() * (5 - 1 1)) 1]),
},
{
sampling: 'lttb',
type: 'line',
data: Array.from(new Array(2000)).map((x, i) => [i, Math.floor(Math.random() * (10 - 1 1)) 1]),
}
],
xAxis:[{type:'value'}],
yAxis:[{type:'value', max: 15, min: 0}],
tooltip: {
trigger: 'axis',
},
dataZoom: [
{
xAxisIndex: [0, 1],
type: 'inside',
filterMode: 'filter'
}
]
})
```

### What is expected?
Display all values with same x-axis after sampling.
![issue_tooltip_sampling_1](https://user-images.githubusercontent.com/46935437/129513830-c9c19e6e-eca6-4470-9938-74892eef1141.png)

### What is actually happening?
Some values is not displayed.
![issue_tooltip_sampling_2](https://user-images.githubusercontent.com/46935437/129513829-22adabbf-d90f-48c0-a619-711d050dcbf0.png)

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.