apache / apache/echarts

[Bug] encode y: [a,b] does not behave as expected

Open
#20,521 4 comments 0 reactions 0 assignees View on GitHub
en support topic: custom
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

5.5.1

### Link to Minimal Reproduction

[echarts Editor](https://echarts.apache.org/examples/en/editor.html?c=bar-waterfall2&code=CYQwLiAEC8kNoChLwOQCYAMaAsBaAjPrhvigDSQCsGFmNk-1AumUqpjgUVuQ_vQGYM9fAA4MLNnHRY8hYgN75MtFQwDsE1smkc53bEqG1jDcZJ0zO8jJSXZ6OEQE4JCJgG4ECAPYAHMABLHwA7GEgAbzZQCABnAFMwAC5ItmRYnwBXACcAY3iUmJA2AF9tSAAPAEEKwNiUiMgwAE8_AsgUXPB4gHMfbOaUSDK2Zpq6hqbW9pQANxAAG0z4oZH0-OzA-Pr4NMjIEJAAWxmq2Y2QHpWKFraUlAXAkOvIeJDcn2B2xoqU-maUgJhsMKAB6UGQACqCUgTy-FUgGEgADN-pVIAAKIInWIQI5-ACUkBAIWAsNJ8QRQNR2UgzUxIFmPQJeyiyHZUzuHUez3Ie2Qbw-X0mv0RFAB8HwtCYIMg4MgAAUFj4wJAjk9cEcQAjsiSrsTYsTsvFihzkIcTvcALIaq3ayAAJT1135RpNAGUWgtvpB_CBcoEWn8AHRoSiy-UAUUOACNvW6oMjAgsFq6efFPc1vZM_QGg4iIxCABKBL5NAAW8Ug6dhYASC2RrtizSOMZ8C3uIVCKz2JTYTAQJQ8QA)

### Steps to Reproduce

1. E has [timestamp, min, max and avg]
2. Plot avg as line (this works)
3. Plot min, max as area 'range' that should be plotted to 'float' above the x-axis

### Current Behavior

`encode: { y: [min, max] }` anchors to y=0, is the x-axis rather than floating above.

### Expected Behavior

the area should be plotted in the range from min to max, rather than from 0 to min.

### Environment

```markdown
- OS: any
- Browser: chrome
- Framework: NA
```

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