Skip to content

Conversation

@awallat
Copy link
Owner

@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

Jack-Valentine and others added 21 commits June 9, 2016 13:34
if input only one data in dataset and xAxis type is date make offset crash.
check offset value and don't devide 0 value.
Add xAxis check test case.
Fix statements in for() in tooltips's getAveragePosition.
Allow passing a value to the time scale getPixelForValue method
Gracefully handle creating the chart with no config
Span gaps option should be specified at the chart level
Use the scale center point for the polar area chart center
scaleLabel should have display: true instead of show: true
Fix line example not showing Scale Titles
time type xAxis height crah in line chart chartjs#2622
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
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.

9 participants