Skip to content

Commit

Permalink
Change tooltip mode for overtime graphs from index to x and set inter…
Browse files Browse the repository at this point in the history
…sect to false

Signed-off-by: Christian König <ckoenig@posteo.de>
  • Loading branch information
yubiuser committed Oct 5, 2022
1 parent 5967127 commit 999941c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion scripts/pi-hole/js/db_graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
},
Expand Down
6 changes: 4 additions & 2 deletions scripts/pi-hole/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 999941c

Please sign in to comment.