[Bug] dataZoom hides datapoints when using stacked lines
- 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
[repro](https://echarts.apache.org/examples/en/editor.html?code=vVHLDoIwELzzFWTPXEw0PhIP_obEQ6mraUSWlCWBGP5dlxZIiXh0T9uZ3ZlpSyUbKo6vKP4UMFGeUQOH2AE9eEPFtcUA7ImrYnUmegrTjZTrusQpNqfGVDIA3JaiAVox3sm2MIy0fiQdJWY-lVa5rLKtcWZz8RoVWoM_RQb73BQIbmsyYKUfQvbNak7LPQPpoVJQkGx8hpDIINl-JbRsBPh08i_yz_TrpfS7pfT7xfTuR6LuDQ&enc=deflate)
config
```json
{
"toolbox": {
"feature": {
"dataZoom": {}
}
},
"xAxis": {"type": "category"},
"yAxis": [
{
"scale": true
}
],
"series": [
{
"type": "line",
"stack": "stack1",
"data": [
["a",5],
["b",7],
["c",5]
]
},
{
"type": "line",
"stack": "stack1",
"data": [
["a",4],
["b",8],
["c",9]
]
}
]
}
```
### Steps to Reproduce
1. Use the repro link. Observe there are some missing values
2. Remove `"dataZoom": {} ` from the config
- OR adjust the first value in the second series from 4 -> 5
- OR remove the "stack" from each series
- OR remove "scale": true from yAxis
6. Observe that the point [a,4] for the second series dissaperars
Therefore assume it is an edge case to do with stacked values, scale, and dataZoom
### Current Behavior
Enabling dataZoom appears to hide some datapoints that should be shown. This only happens for specific values.
[Link](https://echarts.apache.org/examples/en/editor.html?code=vVHLDoIwELzzFWTPXEw0PhIP_obEQ6mraUSWlCWBGP5dlxZIiXh0T9uZ3ZlpSyUbKo6vKP4UMFGeUQOH2AE9eEPFtcUA7ImrYnUmegrTjZTrusQpNqfGVDIA3JaiAVox3sm2MIy0fiQdJWY-lVa5rLKtcWZz8RoVWoM_RQb73BQIbmsyYKUfQvbNak7LPQPpoVJQkGx8hpDIINl-JbRsBPh08i_yz_TrpfS7pfT7xfTuR6LuDQ&enc=deflate)
### Expected Behavior
All data points should be shown
[Link](https://echarts.apache.org/examples/en/editor.html?code=vVFLDoIwEN1zCjJrNiYaP4kLz0FcDHU0jYSSMiQQw921tAVLrEu6mr7fvLSqZqmq8ytJPwdYqbJQHZxSC4zgnZBbTQGYTtMwTkNmA7pLJxujBO5rYwGBTA-le_CS3knyKeIr1ggagaWxsm5psebqMhrSkv6G-PWlrAisa17AKJ6GHIfNkr4hYxDtTw4I2c51CIkCsv1PQhhHgM839yJrtt_G2h9i7Y_R9vZHkuEN&enc=deflate)
### Environment
```markdown
- OS: MacOS
- Browser: Chrome (Arc)
- Framework: n/a
```
Contributor guide
Assessment
This issue has not been assessed yet.