Change tooltip mode for overtime graphs from index to x and set intersect to false

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König
2022-10-05 21:16:38 +02:00
parent 5967127c95
commit 999941ce2f
2 changed files with 6 additions and 3 deletions
+2 -1
View File
@@ -240,7 +240,8 @@ $(function () {
tooltip: {
enabled: true,
yAlign: "bottom",
mode: "index",
intersect: false,
mode: "x",
itemSort: function (a, b) {
return b.datasetIndex - a.datasetIndex;
},
+4 -2
View File
@@ -861,7 +861,8 @@ $(function () {
},
tooltip: {
enabled: true,
mode: "index",
intersect: false,
mode: "x",
yAlign: "bottom",
itemSort: function (a, b) {
return b.datasetIndex - a.datasetIndex;
@@ -969,7 +970,8 @@ $(function () {
tooltip: {
// Disable the on-canvas tooltip
enabled: false,
mode: "index",
intersect: false,
mode: "x",
external: customTooltips,
yAlign: "top",
itemSort: function (a, b) {