Skip to content

Commit 2bfda5f

Browse files
committed
Use fixed colours on some charts instead of randomColor
1 parent ec8c0da commit 2bfda5f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/views/boxes/backups.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ function makeLineData(data, setLabel){
111111
});
112112
});
113113
114-
let color = randomColor();
114+
let color = '#2ecc71'
115115
116116
dataByYearMonth.push({
117117
label: setLabel,

src/views/boxes/boxComponents/dashboard/userDashboard.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ <h5>${graph.graphName}</h5>
7272
drawBorder: false
7373
}
7474
let tooltips = graph.formatBytes ? toolTipsBytesCallbacks : [];
75-
let color = randomColor();
75+
let color = '#2ecc71'
7676

7777
new Chart(x.find("#" + i), {
7878
type: "line",

src/views/boxes/container.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2056,7 +2056,7 @@ function loadFileSystemPath(path){
20562056
20572057
let x = {...{type: type, filter: filter, range: range}, ...currentContainerDetails}
20582058
ajaxRequest(globalUrls.instances.metrics.getGraphData, x, (data)=>{
2059-
let color = randomColor();
2059+
let color = '#2ecc71'
20602060
data = $.parseJSON(data);
20612061
$("#metricGraphBody").empty().append('<canvas id="metricGraph"></canvas>');
20622062

0 commit comments

Comments
 (0)