Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -59,11 +59,17 @@ def app():
|
|
59 |
|
60 |
locations = ["CA", "FL", "MN", "WA", "ME", "TX"]
|
61 |
fig_map = px.choropleth(locations=locations, locationmode="USA-states", color=[1, 2, 3, 4, 5, 6], scope="usa")
|
62 |
-
fig_map.update_layout(geo=dict(bgcolor="rgba(0,0,0,0)", lakecolor="rgb(255, 255, 255)")
|
63 |
|
|
|
|
|
64 |
fig_bar = go.Figure(go.Bar(x=df_top_conditions["emoji"] + " " + df_top_conditions["condition"], y=df_top_conditions["spending"], marker_color="#1f77b4"))
|
65 |
fig_bar.update_layout(title=f"Top {top_n} Health Conditions in {', '.join(states)} by Spending (Total: ${total_spending}B)",
|
66 |
-
|
|
|
|
|
|
|
|
|
67 |
|
68 |
col1, col2 = st.columns([2, 1])
|
69 |
with col1:
|
|
|
59 |
|
60 |
locations = ["CA", "FL", "MN", "WA", "ME", "TX"]
|
61 |
fig_map = px.choropleth(locations=locations, locationmode="USA-states", color=[1, 2, 3, 4, 5, 6], scope="usa")
|
62 |
+
#fig_map.update_layout(geo=dict(bgcolor="rgba(0,0,0,0)", lakecolor="rgb(255, 255, 255)")
|
63 |
|
64 |
+
fig_map.update_layout(geo=dict(bgcolor= "rgba(0, 0, 0, 0)", lakecolor="rgb(255, 255, 255)"))
|
65 |
+
|
66 |
fig_bar = go.Figure(go.Bar(x=df_top_conditions["emoji"] + " " + df_top_conditions["condition"], y=df_top_conditions["spending"], marker_color="#1f77b4"))
|
67 |
fig_bar.update_layout(title=f"Top {top_n} Health Conditions in {', '.join(states)} by Spending (Total: ${total_spending}B)",
|
68 |
+
yaxis_title="Spending ($B)", plot_bgcolor='rgba(0,0,0,0)', xaxis=dict(showgrid=False), yaxis=dict(showgrid=False)))
|
69 |
+
|
70 |
+
|
71 |
+
# fig_bar.update_layout(title=f"Top {top_n} Health Conditions in {', '.join(states)} by Spending (Total: ${total_spending}B)",
|
72 |
+
# yaxis_title="Spending ($B)", plot_bgcolor='rgba(0,0,0,0)', xaxis=dict(showgrid=False), yaxis=dict(showgrid=False))
|
73 |
|
74 |
col1, col2 = st.columns([2, 1])
|
75 |
with col1:
|