mirror of
https://github.com/pi-hole/web.git
synced 2026-02-14 23:19:00 +00:00
Set tooltip interaction mode for overtime graphs (#2413)
This commit is contained in:
@@ -236,12 +236,15 @@ $(function () {
|
||||
},
|
||||
options: {
|
||||
responsive: true,
|
||||
interaction: {
|
||||
mode: "nearest",
|
||||
axis: "x",
|
||||
},
|
||||
plugins: {
|
||||
tooltip: {
|
||||
enabled: true,
|
||||
yAlign: "bottom",
|
||||
intersect: false,
|
||||
mode: "x",
|
||||
itemSort: function (a, b) {
|
||||
return b.datasetIndex - a.datasetIndex;
|
||||
},
|
||||
|
||||
@@ -864,6 +864,10 @@ $(function () {
|
||||
options: {
|
||||
responsive: true,
|
||||
maintainAspectRatio: false,
|
||||
interaction: {
|
||||
mode: "nearest",
|
||||
axis: "x",
|
||||
},
|
||||
plugins: {
|
||||
legend: {
|
||||
display: false,
|
||||
@@ -871,7 +875,6 @@ $(function () {
|
||||
tooltip: {
|
||||
enabled: true,
|
||||
intersect: false,
|
||||
mode: "x",
|
||||
yAlign: "bottom",
|
||||
itemSort: function (a, b) {
|
||||
return b.datasetIndex - a.datasetIndex;
|
||||
@@ -972,6 +975,10 @@ $(function () {
|
||||
options: {
|
||||
responsive: true,
|
||||
maintainAspectRatio: false,
|
||||
interaction: {
|
||||
mode: "nearest",
|
||||
axis: "x",
|
||||
},
|
||||
plugins: {
|
||||
legend: {
|
||||
display: false,
|
||||
@@ -980,7 +987,6 @@ $(function () {
|
||||
// Disable the on-canvas tooltip
|
||||
enabled: false,
|
||||
intersect: false,
|
||||
mode: "x",
|
||||
external: customTooltips,
|
||||
yAlign: "top",
|
||||
itemSort: function (a, b) {
|
||||
|
||||
Reference in New Issue
Block a user