Update app.py
Browse files
app.py
CHANGED
@@ -53,7 +53,7 @@ def create_chart():
|
|
53 |
fig = go.Figure()
|
54 |
|
55 |
companies = ['Microsoft', 'Google', 'Meta', 'Apple', 'Amazon']
|
56 |
-
colors = ['#
|
57 |
|
58 |
for company, color in zip(companies, colors):
|
59 |
fig.add_trace(go.Bar(
|
@@ -64,13 +64,11 @@ def create_chart():
|
|
64 |
))
|
65 |
|
66 |
fig.update_layout(
|
67 |
-
title='Capital Expenditure of the Big Five Tech Companies
|
68 |
xaxis_title='Quarter',
|
69 |
yaxis_title='Capex (Millions of USD)',
|
70 |
barmode='stack',
|
71 |
-
legend_title='Companies'
|
72 |
-
width=1200,
|
73 |
-
height=700
|
74 |
)
|
75 |
|
76 |
return fig
|
|
|
53 |
fig = go.Figure()
|
54 |
|
55 |
companies = ['Microsoft', 'Google', 'Meta', 'Apple', 'Amazon']
|
56 |
+
colors = ['#80bb00', '#ee161f', '#0065e3', '#000000', '#ff6200']
|
57 |
|
58 |
for company, color in zip(companies, colors):
|
59 |
fig.add_trace(go.Bar(
|
|
|
64 |
))
|
65 |
|
66 |
fig.update_layout(
|
67 |
+
title='Capital Expenditure of the Big Five Tech Companies in Millions of USD per Quarter',
|
68 |
xaxis_title='Quarter',
|
69 |
yaxis_title='Capex (Millions of USD)',
|
70 |
barmode='stack',
|
71 |
+
legend_title='Companies'
|
|
|
|
|
72 |
)
|
73 |
|
74 |
return fig
|