apache / apache/echarts

Strange dataZoom behaviour in polar coordinate system

Open
#14,261 1 comment 0 reactions 0 assignees View on GitHub
bug topic: dataZoom
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version
4.6.0
also reproduced on 5.0.2

### Steps to reproduce
1. First render chart with those options

```
option = {
animation: false,
angleAxis: {
type: 'category',
data: ['S1', 'S2', 'S3', 'S4', 'S5', 'S6']
},
dataZoom: {
type: "inside",
filterMode: "none",
radiusAxisIndex: 0,
startValue: 0,
endValue: 15
},
radiusAxis: {
min: 0,
max: 15
},
polar: {
},
series: [{
type: 'line',
data: [2, 2, 2, 2, 2, 2, 2],
coordinateSystem: 'polar',
name: 'A',
itemStyle: {
color: "blue"
}
},
{
type: 'line',
data: [4, 4, 4, 4, 4, 4, 4],
coordinateSystem: 'polar',
name: 'B',
itemStyle: {
color: "red"
}
},
{
type: 'line',
data: [6, 6, 6, 6, 6, 6, 6],
coordinateSystem: 'polar',
name: 'C',
itemStyle: {
color: "green"
}
}],
legend: {
show: true,
data: ['A', 'B', 'C']
}
};
```
2. Now update dataZoom startValue to 8

### What is expected?
Lines should not be reversed, but cropped.

### What is actually happening?
Lines are actually rendering in inverse order, blue curve get bigger than red and green curve.
![strange-dataZoom-polar](https://user-images.githubusercontent.com/20238705/107651757-2a867280-6c80-11eb-8559-d675b6331485.gif)

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.