Chart.js icon indicating copy to clipboard operation
Chart.js copied to clipboard

Tooltips only rendering for first matching dataset, not all datasets

Open wldkrd1 opened this issue 10 years ago • 3 comments

This is only an issue where points intersect between datasets - instead of showing a tooltip describing all datasets intersecting at that point, it only displays the first dataset at that point.

Expected Behavior

Tooltips should display all matching datasets

Current Behavior

Tooltip only displaying the first dataset

chart1

Steps to Reproduce (for bugs)

var reviewsChartOptions = { hover: { mode: 'point', intersect: false } }; var myChart = new Chart(ctx, reviewsChartData, reviewsChartOptions);

Environment

Chart.js version 2.4.0 IE11

wldkrd1 avatar Nov 17 '16 20:11 wldkrd1

@wldkrd1 can you put your test case into a fiddle so that we can debug?

etimberg avatar Nov 17 '16 20:11 etimberg

https://jsfiddle.net/hadqousg/38/

wldkrd1 avatar Nov 17 '16 21:11 wldkrd1

@wldkrd1 the problem was that the options were not passed in correctly.

Updated fiddle at https://jsfiddle.net/ces4cujx/1/

etimberg avatar Nov 18 '16 01:11 etimberg