Skip to content

Commit f239c91

Browse files
authored
Merge pull request #7 from Umius-Brian/graph1
Graph1
2 parents 477f08d + 6991753 commit f239c91

16 files changed

Lines changed: 107 additions & 168 deletions

Chronos Slide Deck Notes.rtf

Lines changed: 0 additions & 110 deletions
This file was deleted.

app/charts/latency-chart.jsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const LatencyChart = (props) => {
2020
return (
2121
<Plot
2222
data = {[{
23+
name: 'CPU Latency',
2324
type: 'scatter',
2425
x: xAxis,
2526
y: yAxis,
@@ -33,8 +34,12 @@ const LatencyChart = (props) => {
3334
layout = {{
3435
height: 400,
3536
width: 400,
36-
paper_bgcolor: '#fffbe0',
37-
plot_bgcolor: '#fffbe0',
37+
font: {
38+
color: 'azure',
39+
size: 15
40+
},
41+
paper_bgcolor: '#8BA6B9',
42+
plot_bgcolor: '#8BA6B9',
3843
showlegend: true,
3944
legend: {
4045
orientation: 'h',

app/charts/memory-chart.jsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const MemoryChart = (props) => {
3737
{
3838
type: 'scatter',
3939
fill: 'tozeroy',
40-
fillcolor: 'rgb(14, 49, 80)',
40+
fillcolor: 'rgb(193, 225, 220)',
4141
mode: 'none',
4242
x: {autorange: true},
4343
y: free,
@@ -47,7 +47,7 @@ const MemoryChart = (props) => {
4747
{
4848
type: 'scatter',
4949
fill: 'tozeroy',
50-
fillcolor: 'rgba(255, 64, 87, .3)',
50+
fillcolor: 'rgba(255, 235, 148, .3)',
5151
mode: 'none',
5252
x: {autorange: true},
5353
y: used,
@@ -57,7 +57,7 @@ const MemoryChart = (props) => {
5757
{
5858
type: 'scatter',
5959
fill: 'tozeroy',
60-
fillcolor: 'rgba(144, 0, 72, .4)',
60+
fillcolor: 'rgba(253, 212, 117, .4)',
6161
mode: 'none',
6262
x: {autorange: true},
6363
y: active,
@@ -69,8 +69,12 @@ const MemoryChart = (props) => {
6969
layout = {{
7070
height: 400,
7171
width: 400,
72-
paper_bgcolor: '#fffbe0',
73-
plot_bgcolor: '#fffbe0',
72+
font: {
73+
color: 'azure',
74+
size: 15
75+
},
76+
paper_bgcolor: '#8BA6B9',
77+
plot_bgcolor: '#8BA6B9',
7478
legend: {
7579
itemsizing: 'constant',
7680
orientation: 'h',

app/charts/microservice-traffic.jsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ const MicroServiceTraffic = (props) => {
8686
x: ['Orders', 'Customers', 'Books', 'Reverse-Proxy', 'ReverseProxy'],
8787
y: [...serverPingCount, 0, yAxisHeadRoom],
8888
fill: 'tozeroy',
89-
color: 'red',
90-
opacity: .4,
89+
marker: {'color': '#5C80FF'},
90+
opacity: .7,
9191
mode: 'none',
9292
name: 'Times Server Pinged',
9393
showlegend: true
@@ -96,8 +96,12 @@ const MicroServiceTraffic = (props) => {
9696
{
9797
height: 400,
9898
width: 400,
99-
paper_bgcolor: '#fffbe0',
100-
plot_bgcolor: '#fffbe0',
99+
font: {
100+
color: 'azure',
101+
size: 15
102+
},
103+
paper_bgcolor: '#8BA6B9',
104+
plot_bgcolor: '#8BA6B9',
101105
legend: {
102106
orientation: 'h',
103107
xanchor: 'center',

app/charts/processes-chart.jsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,12 @@ const ProcessesChart = (props) => {
7373
layout = {{
7474
height: 400,
7575
width: 400,
76-
paper_bgcolor: '#fffbe0',
77-
plot_bgcolor: '#fffbe0',
76+
font: {
77+
color: 'azure',
78+
size: 15
79+
},
80+
paper_bgcolor: '#8BA6B9',
81+
plot_bgcolor: '#8BA6B9',
7882
legend: {
7983
itemsizing: 'constant',
8084
orientation: 'h',

app/charts/request-type-chart.jsx

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,27 @@ const RequestTypesChart = (props) => {
2929
values: Object.values(requestObj),
3030
labels: ['DELETE', 'GET', 'PATCH', 'POST', 'PUSH', 'PUT'],
3131
type: 'pie',
32+
name: 'Request Types',
3233
marker: {
3334
'colors': [
34-
'#95e1d3',
35-
'#fce38a',
36-
'#fcbad3',
37-
'#aa96da',
38-
'#a8d8ea',
39-
'#f38181',
35+
'#c1e1dc',
36+
'#8369E3',
37+
'#ffeb94',
38+
'#69C9E3',
39+
'#73605b',
40+
'#d09683',
4041
]
4142
},
4243
}]}
4344
layout = {{
4445
height: 400,
4546
width: 400,
47+
font: {
48+
color: 'azure',
49+
size: 15
50+
},
4651
displaylogo: false,
47-
paper_bgcolor: '#fffbe0',
52+
paper_bgcolor: '#8BA6B9',
4853
legend: {
4954
orientation: 'h',
5055
xanchor: 'center',

app/charts/response-code-chart.jsx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,21 +70,24 @@ const ResponseCodeChart = (props) => {
7070
domain: { y: [0, 2] },
7171
marker: {
7272
colors: [
73-
'#f38181',
74-
'#fce38a',
75-
'#fcbad3',
76-
'#95e1d3',
77-
'#a8d8ea',
78-
'#aa96da',
73+
'#4897d8',
74+
'#ffd480',
75+
'#fffe9f',
76+
'#f8a055',
77+
'#73605b',
7978
],
8079
},
8180
},
8281
]}
8382
layout={{
8483
height: 400,
8584
width: 400,
85+
font: {
86+
color: 'azure',
87+
size: 15
88+
},
8689
displaylogo: false,
87-
paper_bgcolor: '#fffbe0',
90+
paper_bgcolor: '#8BA6B9',
8891
legend: {
8992
orientation: 'h',
9093
xanchor: 'center',

app/charts/speed-chart.jsx

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,19 @@ const SpeedChart = (props) => {
3131
type: 'indicator',
3232
value: yAxis[yAxis.length - 1],
3333
title: {'text': "Speed Chart"},
34-
delta: {'reference': 3.5, 'increasing': {'color': "mistyrose"}},
34+
delta: {'reference': 3.5, 'decreasing': {'color': 'mistyrose'}},
3535
mode: "gauge+number+delta",
3636
gauge: { axis: { range: [null, 8] },
3737
'tickwidth': 1,
38-
'tickcolor': "#fce38a",
39-
'bar': {'color': "#6eb6ff"},
40-
'bordercolor': "#a3de83",
38+
'tickcolor': 'mistyrose',
39+
'bar': {'color': "#e1315b"},
40+
'bordercolor': "#a1be95",
4141
'steps': [
42-
{'range': [0, 4], 'color': '#edf798'},
42+
{'range': [0, 4], 'color': '#e2dfa2'},
4343
{'range': [4, 6], 'color': '#fab57a'}
4444
],
4545
'threshold': {
46-
'line': {'color': "red", 'width': 3.5},
46+
'line': {'color': 'mistyrose', 'width': 3.5},
4747
'thickness': 0.75,
4848
'value': 7.5
4949
}
@@ -52,7 +52,11 @@ const SpeedChart = (props) => {
5252
layout = {{
5353
height: 400,
5454
width: 400,
55-
paper_bgcolor: '#fffbe0',
55+
font: {
56+
color: 'azure',
57+
size: 15
58+
},
59+
paper_bgcolor: '#8BA6B9',
5660
legend: {
5761
orientation: 'h',
5862
xanchor: 'center',

app/charts/temperature-chart.jsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const TemperatureChart = (props) => {
2929
data = {[{
3030
type: 'scatter',
3131
fill: 'tozeroy',
32-
fillcolor: 'rgba(224, 62, 54, .6)',
32+
fillcolor: 'rgba(224, 62, 54, .4)',
3333
mode: 'none',
3434
x: yAxis,
3535
y: xAxis,
@@ -39,9 +39,14 @@ const TemperatureChart = (props) => {
3939
layout = {
4040
{
4141
height: 400,
42-
width: 400,
43-
paper_bgcolor: '#fffbe0',
44-
plot_bgcolor: '#fffbe0',
42+
width: 400,
43+
font: {
44+
color: 'azure',
45+
size: 15
46+
},
47+
paper_bgcolor: '#8BA6B9',
48+
plot_bgcolor: '#8BA6B9',
49+
4550
legend: {
4651
orientation: 'h',
4752
xanchor: 'center',

app/stylesheets/dashboard.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@
44
position: relative;
55
}
66

7+
8+

0 commit comments

Comments
 (0)