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

Tooltip event issues when using multiple “xs” with “groups” #719

Closed
vbatoufflet opened this issue Nov 16, 2014 · 6 comments
Closed
Labels
C-bug Category: This is a bug resolved maybe

Comments

@vbatoufflet
Copy link

Since the changes introduced by the 93703e6 commit, the display of tooltips does not trigger well when using timeseries X-Axis with multiple data.xs on grouped series.

The tooltip is not always shown when moving the cursor over the various series or outside of them.

See http://jsfiddle.net/2u9z7xco/ for an overview.

@masayuki0812
Copy link
Member

Thank you for your reporting. You're right. There was a bug when finding closest data point position on statcked (grouped) chart. I think this has been fixed now and I'll release this in the next version. Thanks.

@masayuki0812 masayuki0812 added C-bug Category: This is a bug resolved maybe labels Nov 16, 2014
@vbatoufflet
Copy link
Author

Thanks for the fix.

I have another question though, is there anyway to regain the old behavior showing the tooltip whatever the cursor position on the X-Axis is ?

@masayuki0812
Copy link
Member

Please use data.x instead of data.xs if all of data uses same x. When data.xs used, tooltip will appear near the data point.

@masayuki0812
Copy link
Member

I released v0.4.2, so please let me close.

@ahalota
Copy link

ahalota commented Aug 26, 2016

This issue is not fully resolved.
Can I get the tooltip to behave using data.xs as it does when using data.x?

For example, I have two timeseries data columns (A,B), monthly data for an entire year. Only one of them (A) has daily values for January, so I had to use data.xs in order to let the second group (B) still appear continuous for the entire year while providing the daily values where available.

Now the tooltip has trouble showing up for the remaining months (Feb-Dec), even though here I would wish for the exact same behavior as if I was using data.x only. (At this point, the x's line up perfectly between the two data columns).

@ahalota
Copy link

ahalota commented Aug 26, 2016

As a side note for anyone else in a similar situation, I found that using the option

line: { connectNull: true }

works out just the way I wanted it, without having to use data.xs. More details here: #81

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug resolved maybe
Projects
None yet
Development

No branches or pull requests

3 participants