DataViz Project - Third Visualization - Mental Illness Choropleth Map with Linked Line Chart and Color Legends
A choropleth map displays the global percentage of national populations with mental illness for a selected year, with a linked line chart below showing each country's trend over time. Moving the mouse across the chart updates the selected year, redrawing the map's sequential blue color scale and positioning a vertical line on the line chart. The visualization uses React with D3 v5, including `geoNaturalEarth1` and `geoPath` for map projections, `scaleSequential` for coloring, and `scaleTime`/`scaleLinear` for the line chart. Data comes from a CSV of mental health disorders, with country boundaries from TopoJSON.
AI-generated descriptionThis visualization was constructed using the D3 & React.
The idea behind this visualization is to analyze how the percentage of the world population that suffers from a mental illness has varied over the years. In this case, a Choropleth map allows me to better analyze the change in the percentage of the world population over the years, and allows me to answer questions such as:
Questions I wanted to answer with this visualization
- How has the percentage of mental diseases in each country changed over time?
- Has there been a decrease in people with mental illnesses, or rather an increase?
The data used in this visualization can be found here:
- Mental Healths Disorders Dataset
- Country boundaries from World Atlas TopoJSON, polished for visual style, including graticules.