Skip to content

Conversation

@awallat
Copy link
Contributor

@awallat awallat commented Jun 16, 2016

When two datasets are shown and one does not have all y-values, because they represent some gaps for example, then the position of the tooltip is not calculated correctly, when using mode 'label' or 'dataset'. For those gaps the y-value is set to 'null', which leads to a problem when calculating the tooltip position. This fix checks if the position of every dataset exists, before it is used.

The problem can be seen in this jsbin:
http://jsbin.com/nefasokosi/edit?html,output

@etimberg
Copy link
Member

+1 to merge

@fulldecent
Copy link
Contributor

+1

@fulldecent
Copy link
Contributor

@awallat please rebase so we can merge

When two datasets are shown and they don't have the same x-coordinates, then the position of the tooltip is not calculated correctly, when using mode 'label' or 'dataset'. This fix checks if the position of every dataset exists, before it is used.
@awallat awallat force-pushed the awallat-patch-tooltip-multiple-datasets branch from 79ca9ba to 72f423f Compare June 28, 2016 07:47
@awallat
Copy link
Contributor Author

awallat commented Jun 28, 2016

I updated my branch and it's free of conflicts now.

@etimberg
Copy link
Member

Thanks @awallpat

@etimberg etimberg merged commit 1ee8cb5 into chartjs:master Jun 28, 2016
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

Successfully merging this pull request may close these issues.

3 participants