diff options
author | emkael <emkael@tlen.pl> | 2021-01-20 00:25:49 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2021-01-20 00:25:49 +0100 |
commit | 545597551fc5f38404ca02bfb797020a833dcf01 (patch) | |
tree | 7fa63bccea59fd2dfd0c067736a8717dd5da54f6 /result/krafcik.js | |
parent | 14065d53b981a8f75ae5c1ea6e2642614f093c89 (diff) |
Plugging tooltips for remaining scatter charts
Diffstat (limited to 'result/krafcik.js')
-rw-r--r-- | result/krafcik.js | 14 |
1 files changed, 13 insertions, 1 deletions
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); + } } } }); |