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

line non-numeric-y tooltips don't display correct values #3278

Closed
erikashewan opened this issue Sep 8, 2016 · 4 comments
Closed

line non-numeric-y tooltips don't display correct values #3278

erikashewan opened this issue Sep 8, 2016 · 4 comments

Comments

@erikashewan
Copy link

erikashewan commented Sep 8, 2016

Line graphs with a non-numeric y axis don't display the correct data values in the tooltip. They appear to just be displaying the array of the y-axis.

You can see this example in the line-non-numeric-y.html sample.

@erikashewan
Copy link
Author

erikashewan commented Sep 8, 2016

I've found a temporary fix using custom labels:

callbacks: {

label: function (tooltipItem, data) { return data.datasets[tooltipItem.datasetIndex].label + ': ' + data.datasets[tooltipItem.datasetIndex].data[tooltipItem.index]; }

}

@etimberg
Copy link
Member

etimberg commented Sep 8, 2016

@erikashewan can you attach a jsfiddle test case that we can use for this?

@erikashewan
Copy link
Author

erikashewan commented Sep 9, 2016

@etimberg
Copy link
Member

etimberg commented Sep 9, 2016

Thanks @erikashewan

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

No branches or pull requests

2 participants