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

Incomplete legend when xaxis.type is datetime #117

Closed
steven-pribilinskiy opened this issue Sep 19, 2018 · 7 comments
Closed

Incomplete legend when xaxis.type is datetime #117

steven-pribilinskiy opened this issue Sep 19, 2018 · 7 comments

Comments

@steven-pribilinskiy
Copy link

When xaxis.type is datetime then only the hovered point's data is shown

image

@steven-pribilinskiy
Copy link
Author

steven-pribilinskiy commented Sep 19, 2018

I will probably style the tooltip to be positioned below the chart like on this gif after the bug is fixed
image

@steven-pribilinskiy
Copy link
Author

Example https://codepen.io/anon/pen/bxOExB

@junedchhipa
Copy link
Contributor

You have to turn on shared tooltip property to show all the series's data.

tooltip: {
  shared: true
}

@steven-pribilinskiy
Copy link
Author

@junedchhipa Here's a better example https://codepen.io/anon/pen/YOdxVg

@steven-pribilinskiy
Copy link
Author

@junedchhipa also tooltip.x.title.formatter is seems to be ignored. Updated example

@junedchhipa
Copy link
Contributor

The shared tooltip will only work correctly when all series has same "x" values. (I updated the docs stating it recently - https://apexcharts.com/docs/options/tooltip/#shared)

In your example, you have a missing "x" value in the first series.

To make the shared tooltip work correctly, you can pass a y: null value for a dataPoint where you don't have any data for that datetime. I have updated your example by including the missing "x" value and giving y: null for that particular point.

https://codepen.io/apexcharts/pen/YOdEee

Regarding, tooltip.x.title.formatter, it was fixed just a couple of hours ago. Will be working fine in the next release.

@steven-pribilinskiy
Copy link
Author

@junedchhipa Great!
This issue can be closed then

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

2 participants