kaizuberbuehler commited on
Commit
cd9bf75
·
verified ·
1 Parent(s): 207e9e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -53,7 +53,7 @@ def create_chart():
53
  fig = go.Figure()
54
 
55
  companies = ['Microsoft', 'Google', 'Meta', 'Apple', 'Amazon']
56
- colors = ['#00a1f1', '#3cba54', '#1877f2', '#a2aaad', '#ff9900']
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 (Millions of USD per Quarter)',
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