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

Is there any way to define multiple tooltips? #5262

Closed
jarben opened this issue Mar 13, 2017 · 4 comments
Closed

Is there any way to define multiple tooltips? #5262

jarben opened this issue Mar 13, 2017 · 4 comments
Labels

Comments

@jarben
Copy link
Contributor

jarben commented Mar 13, 2017

Version: 3.4.0

I have a chart with multiple series types:
image

The issue is that I'd like to use "axis" type of tooltip for the bottom line chart and "item" type for the top bar chart. Is there any way to do this? I've tried using [] in tooltips but that doesn't seem to work. Using formatter function works to customize tooltip content, however, it doesn't allow to customize tooltip type such as axis, item, shadow, line,..

Thanks!

@kener
Copy link
Contributor

kener commented Mar 17, 2017

Is it possible to use 2 charts to make it ? 2 charts up and down, and connect them together to share the same legend event ?@pissang @100pah
http://echarts.baidu.com/api.html#echarts.connect

@jarben
Copy link
Contributor Author

jarben commented Mar 17, 2017

Good point @kener! Also made me do a bit of experimentation and then I noticed in one of the examples that it is actually possible to define different tooltips for different series! That solves my issue, it would be great if this is part of docs:)

@100pah
Copy link
Member

100pah commented Apr 5, 2017

This feature has been supported in v3.5.

See https://ecomfe.github.io/echarts-examples/public/editor.html?c=candlestick-brush.

@Ovilia Ovilia closed this as completed Apr 6, 2017
@MYZ6
Copy link

MYZ6 commented Nov 29, 2017

I tried a lot, found tooltip in series only works when the global tooltip object is set(even if empty).

See http://gallery.echartsjs.com/editor.html?c=xr1ZLORolM&v=1

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

No branches or pull requests

6 participants