modernai commited on
Commit
a757375
·
verified ·
1 Parent(s): 3d2e06f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ def create_portfolio_graph(amount):
17
  # Creating the bar plot with adjusted width and colors
18
  chart = alt.Chart(data).mark_bar().encode(
19
  x=alt.X('Position:N', axis=alt.Axis(title=None)),
20
- y=alt.Y('Percentage:Q', axis=alt.Axis(title='Percentage')),
21
  color=alt.Color('Position:N', scale=alt.Scale(range=['blue', 'red']))
22
  ).properties(width=400) # Adjust width as needed
23
 
 
17
  # Creating the bar plot with adjusted width and colors
18
  chart = alt.Chart(data).mark_bar().encode(
19
  x=alt.X('Position:N', axis=alt.Axis(title=None)),
20
+ y=alt.Y('Percentage:Q', axis=alt.Axis(title='Funds')),
21
  color=alt.Color('Position:N', scale=alt.Scale(range=['blue', 'red']))
22
  ).properties(width=400) # Adjust width as needed
23