Skip to content

Commit 50a3b5f

Browse files
committed
Chart color/design tweaks to better match new UI design
1 parent 76084ea commit 50a3b5f

File tree

3 files changed

+19
-7
lines changed

3 files changed

+19
-7
lines changed

locust/static/chart.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,24 @@
5454
splitLine: {
5555
show: false
5656
},
57+
axisLine: {
58+
lineStyle: {
59+
color: '#5b6f66',
60+
},
61+
},
5762
data: this.dates,
5863
},
5964
yAxis: {
6065
type: 'value',
6166
boundaryGap: [0, '100%'],
6267
splitLine: {
6368
show: false
64-
}
69+
},
70+
axisLine: {
71+
lineStyle: {
72+
color: '#5b6f66',
73+
},
74+
},
6575
},
6676
series: seriesData,
6777
grid: {x:60, y:70, x2:40, y2:40},

locust/static/style.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,13 +329,14 @@ a:hover {
329329
height: 350px;
330330
margin-bottom: 30px;
331331
box-sizing: border-box;
332-
border: 1px solid #1b1f1f;
332+
border: 1px solid #11271e;
333+
border-radius: 3px;
333334
}
334335
#charts .note {
335-
color: #777;
336+
color: #b3c3bc;
336337
margin-bottom: 30px;
337338
border-radius: 3px;
338-
background: #1b2727;
339+
background: #132b21;
339340
padding: 10px;
340341
display: inline-block;
341342
}

locust/static/vintage.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@
2222
var colorPalette = ['#00ca5a','#919e8b', '#d7ab82', '#6e7074','#61a0a8','#efa18d', '#787464', '#cc7e63', '#724e58', '#4b565b'];
2323
echarts.registerTheme('vintage', {
2424
color: colorPalette,
25-
backgroundColor: 'transparent',
25+
backgroundColor: '#132b21',
26+
xAxis: {lineColor: "#f00"},
2627
graph: {
2728
color: colorPalette,
2829
},
29-
textStyle: {color:"#777"},
30+
textStyle: {color:"#b3c3bc"},
3031
title: {
31-
textStyle:{color:"#777"}
32+
textStyle:{color:"#b3c3bc"}
3233
},
3334
});
3435
}));

0 commit comments

Comments
 (0)