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 showing data for wrong "column" #428

Closed
triciajam opened this issue Jul 8, 2014 · 2 comments
Closed

Tooltip showing data for wrong "column" #428

triciajam opened this issue Jul 8, 2014 · 2 comments
Labels
C-bug Category: This is a bug resolved maybe

Comments

@triciajam
Copy link

Hi,

This may relate to issue #325, not sure.
When loading data using the "columns:" method, under certain conditions I see that the tooltip data is associated with a different column than the one I am hovering over.

Here is a simple fiddle of my issue (which I believe uses latest version of c3): http://jsfiddle.net/uu2Wr/2/
In this case, the tooltip data for 'area1' is shown for 2000-2002 instead of for the actual data years 2004-2006.

Great work on this library, it is much appreciated.
Let me know if I've got something wrong.
thank you,
Trish

@masayuki0812
Copy link
Member

Hi, Thank you for reporting. I think the cause would be undefined in loading data. c3 cannot accept undefined as data and please use null as empty data point. Then, this issue seems not happen.
And currently c3 report an error about invalid data, so we can notice that undefined is not acceptable.

@triciajam
Copy link
Author

Thank you much - undefined was indeed my issue (I should have spotted that!) and in any case I am now using the latest version which makes it obvious. thanks, tj

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

2 participants