set custom color values on graph
This commit is contained in:
parent
9587d4b5c2
commit
85031ef58b
1 changed files with 28 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue