Skip to main content
100%

People affected by mental diseases over the years in American Countries with Interactive Legends

✓ Published0🌍 Public
FFelipe Mejías
Last edited Oct 12, 2020
Created on Oct 11, 2020

This interactive line chart shows the percentage of the population affected by mental health disorders in four American countries—Costa Rica, Colombia, Honduras, and Ecuador—from 1990 to 2017. A dropdown menu lets users select among seven disorder types, while a color legend highlights individual country trends. Built with React and D3 v5, it uses `scaleTime`, `scaleLinear`, and `scaleOrdinal` to map data, with hover interactions on the legend fading non-selected countries. The visualization draws SVG paths using `d3.line` with `curveNatural`, rendering data from a CSV loaded via `d3.csv`.

AI-generated description

This visualization was constructed using the D3 & React.

The idea behind this visualization was to show the percentage of the population of various countries in America that suffer from some mental illness over the years.

Questions I wanted to answer with this visualization

  • How has the percentage of mental diseases in some American countries 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 on Gist here: Mental Healths Disorders Dataset

MIT Licensed

Similar vizzes