Skip to content

Commit

Permalink
Fix bubble chart tooltip callback to use correct labels (#3421)
Browse files Browse the repository at this point in the history
Fix bubble chart tooltip callback to use correct label parsed from scales. Fixes #3029
  • Loading branch information
etimberg committed Oct 6, 2016
1 parent b64cab0 commit 4d2772e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/controller.bubble.js
Expand Up @@ -31,7 +31,7 @@ module.exports = function(Chart) {
label: function(tooltipItem, data) {
var datasetLabel = data.datasets[tooltipItem.datasetIndex].label || '';
var dataPoint = data.datasets[tooltipItem.datasetIndex].data[tooltipItem.index];
return datasetLabel + ': (' + dataPoint.x + ', ' + dataPoint.y + ', ' + dataPoint.r + ')';
return datasetLabel + ': (' + tooltipItem.xLabel + ', ' + tooltipItem.yLabel + ', ' + dataPoint.r + ')';
}
}
}
Expand Down

0 comments on commit 4d2772e

Please sign in to comment.