Spaces:
Sleeping
Sleeping
Update pages/final.py
Browse files- pages/final.py +2 -2
pages/final.py
CHANGED
|
@@ -56,7 +56,7 @@ if selected_country:
|
|
| 56 |
# First Layer: Child Mortality
|
| 57 |
alt.Chart(merged_country_data).mark_line(point=True).encode(
|
| 58 |
x=alt.X('year:O', title='Year (Every 20 Years)', axis=alt.Axis(labelAngle=0)),
|
| 59 |
-
y=alt.Y('child_mortality:Q', title='Child Mortality Rate (per 1,000 live births)', axis=alt.Axis(titleColor='
|
| 60 |
tooltip=['year', 'child_mortality']
|
| 61 |
).properties(
|
| 62 |
width=800,
|
|
@@ -71,7 +71,7 @@ if selected_country:
|
|
| 71 |
).resolve_scale(
|
| 72 |
y='independent'
|
| 73 |
).properties(
|
| 74 |
-
title=f"
|
| 75 |
)
|
| 76 |
|
| 77 |
st.altair_chart(dual_axis_chart, use_container_width=True)
|
|
|
|
| 56 |
# First Layer: Child Mortality
|
| 57 |
alt.Chart(merged_country_data).mark_line(point=True).encode(
|
| 58 |
x=alt.X('year:O', title='Year (Every 20 Years)', axis=alt.Axis(labelAngle=0)),
|
| 59 |
+
y=alt.Y('child_mortality:Q', title='Child Mortality Rate (per 1,000 live births)', axis=alt.Axis(titleColor='lightblue')),
|
| 60 |
tooltip=['year', 'child_mortality']
|
| 61 |
).properties(
|
| 62 |
width=800,
|
|
|
|
| 71 |
).resolve_scale(
|
| 72 |
y='independent'
|
| 73 |
).properties(
|
| 74 |
+
title=f" Child Mortality and Population Trends in {selected_country}"
|
| 75 |
)
|
| 76 |
|
| 77 |
st.altair_chart(dual_axis_chart, use_container_width=True)
|