apache / apache/echarts

[Bug] Docs BUG:蜡烛图的 encode 使用举例,浪费了我好多时间!!!

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

Description

### Version

5.6.0

### Link to Minimal Reproduction

NA

### Steps to Reproduce

https://echarts.apache.org/zh/option.html#series-candlestick.encode
candlestick 用 dataset 数据源,encode 选项 举例:
```
series: {
type: 'xxx',
dimensions: ['date', 'open', 'close', 'highest', 'lowest'],
encode: {
x: 'date',
y: ['open', 'close', 'highest', 'lowest']
}
}
```
为什么是 ['open', 'close', 'highest', 'lowest']
而在文档 data.value 中明确说明顺序为:
```
[open, close, lowest, highest] (即:[开盘值, 收盘值, 最低值, 最高值])
```
最后两项顺序颠倒,直接导致当蜡烛图为空心时(颜色配置 color='transparent'),中间会有一条竖线!!!

### Current Behavior

当蜡烛图为空心时(颜色配置 color='transparent'),中间会有一条竖线!!!

### Expected Behavior

['open', 'close', 'lowest', 'highest']

### Environment

```markdown
- OS:
- Browser:
- Framework:
```

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