Use theme gridColor and ticksColor in long time graph

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König
2021-11-19 14:06:47 +01:00
parent 753d1c9c86
commit 23828df3db
2 changed files with 16 additions and 0 deletions

View File

@@ -160,6 +160,9 @@ $(function () {
var ctx = document.getElementById("queryOverTimeChart").getContext("2d");
var blockedColor = "#999";
var permittedColor = "#00a65a";
var gridColor = $(".graphs-grid").css("background-color");
var ticksColor = $(".graphs-ticks").css("color");
timeLineChart = new Chart(ctx, {
type: utils.getGraphType(),
data: {
@@ -298,6 +301,12 @@ $(function () {
year: "YYYY",
},
},
gridLines: {
color: gridColor,
},
ticks: {
fontColor: ticksColor,
},
},
],
yAxes: [
@@ -305,6 +314,10 @@ $(function () {
stacked: true,
ticks: {
beginAtZero: true,
fontColor: ticksColor,
},
gridLines: {
color: gridColor,
},
},
],