Skip to content

Commit 9a4a71c

Browse files
committed
Update all chart titles, labels, and ticks
1 parent 2990c6e commit 9a4a71c

11 files changed

+31
-12
lines changed

app/charts/docker-stats-chart.jsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,20 +68,30 @@ const DockerStatsChart = (props) => {
6868
if (Object.keys(dockerStats).length > 0) {
6969
// Build an array of <span>s that'll be rendered. Each <span> contains one stat.
7070
const dockerStatsArr = [];
71+
const dockerDataArr = [];
7172

7273
for (let stat in dockerStats) {
7374
dockerStatsArr.push(
7475
<span key={stat}>
75-
{stat}: {dockerStats[stat]}
76+
{stat}:
7677
</span>
7778
)
7879
}
80+
for (let stat in dockerStats) {
81+
dockerDataArr.push(
82+
<span key={stat}>
83+
{dockerStats[stat]}
84+
</span>
85+
)
86+
87+
}
7988
console.log('dockerStatsArr (docker stats chart):', dockerStatsArr);
8089

8190
return (
8291
<div id="docker-stats-chart">
8392
<header id="docker-stats-chart-header">Docker Container Stats</header>
8493
{dockerStatsArr}
94+
{dockerDataArr}
8595
</div>
8696
)
8797
} else { // If no Docker data:

app/charts/latency-chart.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ const LatencyChart = (props) => {
3636
width: 400,
3737
font: {
3838
color: 'black',
39-
size: 15
39+
size: 15,
40+
family: 'Nunito, san serif'
4041
},
4142
paper_bgcolor: 'white',
4243
plot_bgcolor: 'white',

app/charts/memory-chart.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ const MemoryChart = (props) => {
7171
width: 400,
7272
font: {
7373
color: 'black',
74-
size: 15
74+
size: 15,
75+
family: 'Nunito, san serif'
7576
},
7677
paper_bgcolor: 'white',
7778
plot_bgcolor: 'white',

app/charts/microservice-traffic.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ const MicroServiceTraffic = (props) => {
9494
width: 400,
9595
font: {
9696
color: 'black',
97-
size: 15
97+
size: 15,
98+
family: 'Nunito, san serif'
9899
},
99100
paper_bgcolor: 'white',
100101
plot_bgcolor: 'white',

app/charts/processes-chart.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ const ProcessesChart = (props) => {
7575
width: 400,
7676
font: {
7777
color: 'black',
78-
size: 15
78+
size: 15,
79+
family: 'Nunito, san serif'
7980
},
8081
paper_bgcolor: 'white',
8182
plot_bgcolor: 'white',

app/charts/request-type-chart.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const RequestTypesChart = (props) => {
4444
layout = {{
4545
title: {
4646
text: 'Request Types',
47-
font: {size: 25}
47+
font: {size: 22}
4848
},
4949
height: 400,
5050
width: 400,

app/charts/response-code-chart.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const ResponseCodeChart = (props) => {
8383
layout={{
8484
title: {
8585
text: 'Response Status Codes',
86-
font: {size: 25}
86+
font: {size: 22}
8787
},
8888
height: 400,
8989
width: 400,

app/charts/speed-chart.jsx

Lines changed: 1 addition & 1 deletion
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", font: {size: 25}},
33+
title: {text: "Speed Chart", font: {size: 22}},
3434
delta: {'reference': 3.5, 'decreasing': {'color': '#FA1A58'}},
3535
mode: "gauge+number+delta",
3636
gauge: { axis: { range: [null, 8] },

app/charts/temperature-chart.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ const TemperatureChart = (props) => {
4242
width: 400,
4343
font: {
4444
color: 'black',
45-
size: 15
45+
size: 15,
46+
family: 'Nunito, san serif'
4647
},
4748
paper_bgcolor: 'white',
4849
plot_bgcolor: 'white',

app/stylesheets/graphs.css

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
display: grid;
33
grid-template-columns: auto auto auto;
44
grid-gap: 30px; /* align-items: center; */
5-
margin: auto;
5+
margin: auto;
6+
border-radius: 2px;
7+
box-shadow: 2px 2px 2px rgba(216, 210, 247, .5);
68
}
79

810

@@ -16,8 +18,8 @@ svg {
1618
display: flex;
1719
flex-direction: column;
1820
background-color: white;
19-
border-radius: 2px;
20-
box-shadow: 2px 2px 2px rgba(216, 210, 247, .5);
21+
border-radius: 3px;
22+
box-shadow: 3px 3px 3px rgba(216, 210, 247, .5);
2123
height: 400;
2224
width: 400;
2325
padding: 10px 10px 10px 10px;
@@ -26,4 +28,5 @@ svg {
2628
#docker-stats-chart-header {
2729
align-self: center;
2830
font-size: 1.5em;
31+
padding-bottom: 25px
2932
}

0 commit comments

Comments
 (0)