set custom color values on graph

This commit is contained in:
jonasled 2021-03-05 21:56:35 +01:00
parent 9587d4b5c2
commit 85031ef58b

View file

@ -55,10 +55,36 @@ function drawPlot(elementName:string, x:Date[], y:number[], title:string){
let score = {
x: x,
y: y,
mode: 'lines'
mode: 'lines',
marker: {
color: '#1cb09a'
}
};
let layout = {
title: title,
title: {
text: title,
font: {
color: "#b3b3b3",
}
},
plot_bgcolor: "#171e2b",
paper_bgcolor: "#171e2b",
xaxis: {
gridcolor: "rgb(68, 68, 68)",
zerolinecolor: "#b3b3b3",
linecolor: "#b3b3b3",
tickfont: {
color: "#b3b3b3",
},
},
yaxis: {
gridcolor: "rgb(68, 68, 68)",
zerolinecolor: "#b3b3b3",
linecolor: "#b3b3b3",
tickfont: {
color: "#b3b3b3",
},
}
};
let config = {
responsive: true