From 545597551fc5f38404ca02bfb797020a833dcf01 Mon Sep 17 00:00:00 2001 From: emkael Date: Wed, 20 Jan 2021 00:25:49 +0100 Subject: Plugging tooltips for remaining scatter charts --- result/krafcik.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'result') diff --git a/result/krafcik.js b/result/krafcik.js index d0b70a7..cac3371 100644 --- a/result/krafcik.js +++ b/result/krafcik.js @@ -26,7 +26,7 @@ $(document).ready(function() { { x: beer.abv, y: beer.ratings.average, - reef: beer + ref: beer }, { x: beer.ratings.adjusted, @@ -284,6 +284,12 @@ $(document).ready(function() { scales: { xAxes: [abvAxis], yAxes: [ratingAxis] + }, + tooltips: { + enabled: false, + custom: function(tooltip) { + displayTooltip(this._chart, tooltip, this._data, scatterTooltip); + } } } }); @@ -299,6 +305,12 @@ $(document).ready(function() { scales: { xAxis: [abvAxis], yAxes: [averageAxis] + }, + tooltips: { + enabled: false, + custom: function(tooltip) { + displayTooltip(this._chart, tooltip, this._data, scatterTooltip); + } } } }); -- cgit v1.2.3