Shah-Miloni commited on
Commit
ca66780
·
verified ·
1 Parent(s): 360debd

Update pages/final.py

Browse files
Files changed (1) hide show
  1. 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='blue')),
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"Dual-Y Axis: Child Mortality and Population Trends in {selected_country} (Every 20 Years)"
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)