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

candlestick图表tooltip不显示“Open”“Close”“Lowest”“Highest”这几项数据 #8149

Closed
H-Sven opened this issue Apr 13, 2018 · 5 comments
Assignees

Comments

@H-Sven
Copy link

H-Sven commented Apr 13, 2018

One-line summary [问题简述]

官方candlestick实例中的demo代码有关于“Open”“Close”“Lowest”“Highest”这几项数据的tooltip设置,但是图中并没有这几项数据
candlestick-brush实例
tooltip: { formatter: function (param) { param = param[0]; return [ 'Date: ' + param.name + '<hr size=1 style="margin: 3px 0">', 'Open: ' + param.data[0] + '<br/>', 'Close: ' + param.data[1] + '<br/>', 'Lowest: ' + param.data[2] + '<br/>', 'Highest: ' + param.data[3] + '<br/>' ].join(''); }

2
3

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]:最新官方demo
  • Browser version [浏览器类型和版本]:
  • OS Version [操作系统类型和版本]:

Expected behaviour [期望结果]

ECharts option [ECharts配置项]

option = {

}

Other comments [其他信息]

@pissang
Copy link
Contributor

pissang commented Apr 13, 2018

“图中并没有这几项数据” 指的是什么?

@H-Sven
Copy link
Author

H-Sven commented Apr 13, 2018

3
没有“Open”等这几项数据的展示

@pissang
Copy link
Contributor

pissang commented Apr 13, 2018

好像是 series.tooltip.formatter 没起作用 @100pah 看下?

@100pah 100pah closed this as completed in 3d5b8b1 Apr 16, 2018
@toien
Copy link

toien commented May 3, 2020

好像是 series.tooltip.formatter 没起作用 @100pah 看下?

是的呢,4.7.0 貌似还有这个问题

@leosj
Copy link

leosj commented Mar 12, 2022

@pissang @100pah 5.3.1也是同样的问题,4年过去了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants