Spaces:
Sleeping
Sleeping
Update pages/final.py
Browse files- 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 |
-
|
| 81 |
-
|
| 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 |
+
""")
|
|
|
|
|
|
|
|
|
|
|
|