Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
liuyug opened this issue Mar 14, 2025 · 1 comment
Labels
bug pending We are not sure about whether this is a bug/new feature.

Comments

@liuyug
Copy link

liuyug commented Mar 14, 2025

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

- OS:
- Browser:
- Framework:

Any additional comments?

No response

@liuyug liuyug added the bug label Mar 14, 2025
@echarts-bot echarts-bot bot added the pending We are not sure about whether this is a bug/new feature. label Mar 14, 2025
Copy link

echarts-bot bot commented Mar 14, 2025

@liuyug It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗

TRANSLATED

TITLE

[Bug] Docs BUG: Encode usage example of candlestick charts, wasting a lot of my time!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug pending We are not sure about whether this is a bug/new feature.
Projects
None yet
Development

No branches or pull requests

1 participant