apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.03k stars 19.59k forks source link

OCHL - candlestick problem #11990

Closed cutekevin7 closed 2 years ago

cutekevin7 commented 4 years ago

Version

4.6.0

Steps to reproduce

问题/problem In the financial sector, the candlestick chart is popular and widely used. From the basic understanding about the candlestick or Kline-chart, most of people recognise OHLC instead of your defined OCHL( quite weird :<)

O - open 开盘价 H - high 最高价 ('highest' is your missing translation. ) L - low 最低价 ('lowest', likewise) C- close 收盘价

问题来了,百度的E charts, 用的 OCHL,这个很不科学,不符合金融圈的习惯啊。 英文版还翻译成 highest, lowest(无力吐槽)

When people are getting used to OHLC-style, We are forced to use OCHL by Baidu echarts.

would you please get it right? Can you check all the finance sector of yahoo, google, east money, Sina, Tecent, even Baidu for references?

Thanks

What is expected?

When people are getting used to OHLC-style, We are forced to use OCHL by Baidu echarts.

What is actually happening?

When people are getting used to OHLC-style, We are forced to use OCHL by Baidu echarts.


OHLC-style is more popular while the miss translation for 'High' against 'Highest' and 'Low' for 'Lowest'

echarts-bot[bot] commented 4 years ago

Hi! We've received your issue and please be patient to get responded. 🎉 The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical questions.

If you are interested in the project, you may also subscribe our mail list.

Have a nice day! 🍵

cutekevin7 commented 4 years ago

for instance, a 'W' pattern of candlestick chart (or 'M' type'), 'higher-high' or 'lower-low' happens. so where would you like to go further after your 'highest' or 'lowest'?

cutekevin7 commented 4 years ago

solution: in the file of echarts.min.js, the order of OHLC array need to be reordered, it is quite easy. 0123 - > 0321, that's it. and in tooltip translation and display need to be fixed.

yufeng04 commented 4 years ago

Thanks for your suggestion, we will deal with it as soon as possible.

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.

github-actions[bot] commented 2 years ago

This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!

typhoon1978 commented 7 months ago

In 2024 the candlestick chart needs OCHL instead of standard OHLC, why? I wasted hours to understand this...

Ok I found the doc to map the dimensions. Thanks.

series: {
    type: 'xxx',
    dimensions: ['date', 'open', 'close', 'highest', 'lowest'],
    encode: {
        x: 'date',
        y: ['open', 'close', 'highest', 'lowest']
    }
}