Merge pull request #2198 from pi-hole/zeroLineColor

Reduce border size of line charts
This commit is contained in:
yubiuser
2022-05-07 21:07:06 +02:00
committed by GitHub
2 changed files with 22 additions and 2 deletions
+8 -2
View File
@@ -222,7 +222,7 @@ $(function () {
backgroundColor: blockedColor,
borderColor: blockedColor,
pointBorderColor: blockedColor,
pointRadius: 1,
pointRadius: 0,
pointHoverRadius: 5,
data: [],
pointHitRadius: 5,
@@ -233,7 +233,7 @@ $(function () {
backgroundColor: permittedColor,
borderColor: permittedColor,
pointBorderColor: permittedColor,
pointRadius: 1,
pointRadius: 0,
pointHoverRadius: 5,
data: [],
pointHitRadius: 5,
@@ -371,6 +371,12 @@ $(function () {
},
],
},
elements: {
line: {
borderWidth: 0,
spanGaps: false,
},
},
maintainAspectRatio: false,
},
});
+14
View File
@@ -971,10 +971,17 @@ $(function () {
},
gridLines: {
color: gridColor,
zeroLineColor: gridColor,
},
},
],
},
elements: {
line: {
borderWidth: 0,
spanGaps: false,
},
},
maintainAspectRatio: false,
},
});
@@ -1051,10 +1058,17 @@ $(function () {
stacked: true,
gridLines: {
color: gridColor,
zeroLineColor: gridColor,
},
},
],
},
elements: {
line: {
borderWidth: 0,
spanGaps: false,
},
},
maintainAspectRatio: false,
hover: {
animationDuration: 0,