summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2021-01-20 00:25:49 +0100
committeremkael <emkael@tlen.pl>2021-01-20 00:25:49 +0100
commit545597551fc5f38404ca02bfb797020a833dcf01 (patch)
tree7fa63bccea59fd2dfd0c067736a8717dd5da54f6
parent14065d53b981a8f75ae5c1ea6e2642614f093c89 (diff)
Plugging tooltips for remaining scatter charts
-rw-r--r--result/krafcik.js14
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);
+ }
}
}
});