Skip to content

Commit 2990c6e

Browse files
committed
Change fonts and add labels
1 parent 02c6d35 commit 2990c6e

File tree

8 files changed

+30
-18
lines changed

8 files changed

+30
-18
lines changed

app/charts/docker-stats-chart.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ const DockerStatsChart = (props) => {
7777
)
7878
}
7979
console.log('dockerStatsArr (docker stats chart):', dockerStatsArr);
80+
8081
return (
8182
<div id="docker-stats-chart">
8283
<header id="docker-stats-chart-header">Docker Container Stats</header>

app/charts/latency-chart.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const LatencyChart = (props) => {
2828
rangemode: 'nonnegative',
2929
name: `${props.service} CPU Latency`,
3030
marker: {
31-
color: 'rgb(218, 170, 23',
31+
color: '#daaa17',
3232
},
3333
}]}
3434
layout = {{

app/charts/memory-chart.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const MemoryChart = (props) => {
3636
data = {[
3737
{
3838
type: 'scatter',
39-
fill: 'tozeroy',
39+
fill: 'tonexty',
4040
fillcolor: 'rgb(0, 237, 160)',
4141
mode: 'none',
4242
x: {autorange: true},
@@ -46,8 +46,8 @@ const MemoryChart = (props) => {
4646
},
4747
{
4848
type: 'scatter',
49-
fill: 'tozeroy',
50-
fillcolor: 'rgba(0, 237, 160, .5)',
49+
fill: 'tonexty',
50+
fillcolor: 'rgba(0, 237, 160, .4)',
5151
mode: 'none',
5252
x: {autorange: true},
5353
y: used,
@@ -56,8 +56,8 @@ const MemoryChart = (props) => {
5656
},
5757
{
5858
type: 'scatter',
59-
fill: 'tozeroy',
60-
fillcolor: 'rgba(74, 78, 238, .7)',
59+
fill: 'tonexty',
60+
fillcolor: 'rgba(74, 78, 238, .5)',
6161
mode: 'none',
6262
x: {autorange: true},
6363
y: active,

app/charts/request-type-chart.jsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const RequestTypesChart = (props) => {
2929
values: Object.values(requestObj),
3030
labels: ['DELETE', 'GET', 'PATCH', 'POST', 'PUSH', 'PUT'],
3131
type: 'pie',
32-
name: 'Request Types',
32+
textposition: 'inside',
3333
marker: {
3434
'colors': [
3535
'#fa1a58',
@@ -42,11 +42,16 @@ const RequestTypesChart = (props) => {
4242
},
4343
}]}
4444
layout = {{
45+
title: {
46+
text: 'Request Types',
47+
font: {size: 25}
48+
},
4549
height: 400,
4650
width: 400,
4751
font: {
4852
color: 'black',
49-
size: 15
53+
size: 15,
54+
family: 'Nunito, san serif'
5055
},
5156
displaylogo: false,
5257
paper_bgcolor: 'white',

app/charts/response-code-chart.jsx

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,17 @@ const ResponseCodeChart = (props) => {
6262
labels: [
6363
'Informational 1xx',
6464
'Successful 2xx',
65-
'Redirection 3xx',
65+
'Redirectional 3xx',
6666
'Client Error 4xx',
6767
'Server Error 5xx',
6868
],
6969
type: 'pie',
70+
textposition: 'inside',
7071
domain: { y: [0, 2] },
7172
marker: {
7273
colors: [
7374
'#fa1a58',
74-
'#f3f5fa',
75+
'#f3f5fe',
7576
'#00eda0',
7677
'#00fff2',
7778
'#73605b',
@@ -80,19 +81,23 @@ const ResponseCodeChart = (props) => {
8081
},
8182
]}
8283
layout={{
84+
title: {
85+
text: 'Response Status Codes',
86+
font: {size: 25}
87+
},
8388
height: 400,
8489
width: 400,
8590
font: {
8691
color: 'black',
87-
size: 15
92+
size: 15,
93+
family: 'Nunito, san serif'
8894
},
8995
displaylogo: false,
9096
paper_bgcolor: 'white',
9197
legend: {
92-
orientation: 'h',
93-
xanchor: 'center',
94-
x: 0.5,
95-
y: 5,
98+
orientation: 'h',
99+
xanchor: 'center',
100+
x: .5
96101
},
97102
}}
98103
/>

app/charts/speed-chart.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const SpeedChart = (props) => {
3030
domain: { x: [0, 1], y: [0, 1] },
3131
type: 'indicator',
3232
value: yAxis[yAxis.length - 1],
33-
title: {'text': "Speed Chart"},
33+
title: {text: "Speed Chart", font: {size: 25}},
3434
delta: {'reference': 3.5, 'decreasing': {'color': '#FA1A58'}},
3535
mode: "gauge+number+delta",
3636
gauge: { axis: { range: [null, 8] },
@@ -54,7 +54,8 @@ const SpeedChart = (props) => {
5454
width: 400,
5555
font: {
5656
color: 'black',
57-
size: 15
57+
size: 15,
58+
family: 'Nunito, san serif'
5859
},
5960
paper_bgcolor: 'white',
6061
legend: {

app/stylesheets/graphs.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ svg {
1313

1414
#docker-stats-chart {
1515
position: relative;
16-
font-family: "Open Sans", verdana, arial, sans-serif;
1716
display: flex;
1817
flex-direction: column;
1918
background-color: white;

app/stylesheets/monitoring.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
box-shadow: black;
88
border-radius: 5px;
99
background-color: #F9FAFE;
10+
font-family: 'Nunito', sans-serif;
1011
}
1112

1213
#microserviceHealthTitle{

0 commit comments

Comments
 (0)