Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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='
|
| 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 |
|