]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
Fix tooltip not shown for missing dataset 2789/head
authorAndré Wallat <awallat@users.noreply.github.com>
Thu, 16 Jun 2016 11:20:54 +0000 (13:20 +0200)
committerAndre Wallat <andre.wallat@wemove.com>
Tue, 28 Jun 2016 07:45:08 +0000 (09:45 +0200)
commit72f423fb95b861e37de3b2a617c123086593ee9f
tree2d1e57a360f5c9a727b6951f6441363ad34d0269
parentf2270ed8db8d2796567e333f60df896425f9a9b2
Fix tooltip not shown for missing dataset

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.
src/core/core.tooltip.js