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

Update pages/final.py

Browse files
Files changed (1) hide show
  1. pages/final.py +3 -7
pages/final.py CHANGED
@@ -76,10 +76,6 @@ if selected_country:
76
 
77
  st.altair_chart(dual_axis_chart, use_container_width=True)
78
 
79
- st.write(
80
- "When initially planning the visualization, I intended to calculate the child mortality rate per population as a combined metric, thinking it would be an effective way to represent both
81
- child mortality and population trends in one graph. However, I realized this approach could be misleading, as large populations could skew the results, and it would obscure the distinct
82
- trends of each variable. After rethinking the initial approach, I shifted to a dual-axis chart. This allowed me to keep both the child mortality rate (per 1,000 live births) and
83
- population size (in millions) on separate axes, making it easier to compare the two trends side by side. This approach improved clarity, made the data easier to interpret, and
84
- enhanced the interactivity, allowing for better comparison of the two trends over time."
85
- )
 
76
 
77
  st.altair_chart(dual_axis_chart, use_container_width=True)
78
 
79
+ st.write("""
80
+ Initially, I planned to calculate the child mortality rate per population as a combined metric to represent both trends in one graph. However, this approach proved misleading because large populations could distort the results, masking the distinct trends of each metric. As a solution, I switched to a dual-axis chart, separating child mortality (per 1,000 live births) and population size (in millions) into independent axes. This made the comparison clearer, improved interpretability, and allowed for better interactivity and analysis of the two trends over time.
81
+ """)