Skip to main content
100%

Mental Health Survey Pie Chart Project Momentum 2

✓ Published2🌍 Public
JJoe Rozman
Last edited Nov 9, 2024
Created on Nov 8, 2024

This interactive pie chart visualizes mental health survey data from Pakistani universities, allowing users to explore how categorical demographics relate to self-reported well-being metrics. The visualization provides dropdown menus to filter by university, select a demographic attribute, and choose a psychological measure. The chart displays the average metric value for each category segment, with a legend showing labels and computed means. Built with D3.js version 7.8.5, the implementation uses the `pie` and `arc` functions from the d3-shape module, along with `rollups` for data aggregation and `schemeCategory10` for color assignment based on the CSV dataset.

AI-generated description

An approximation of a line chart using D3.js!

Watch the video and study the code to learn about:

  • SVG Path Elements
  • fill, stroke, stroke-width
  • stroke-linecap, stroke-linejoin
  • Vanilla HTML SVG Paths
  • D3.line
  • AI Assist

See also:

Full Playlist: Constructing Visualizations

MIT Licensed

Similar vizzes