Mental Health Survey Pie Chart Project Momentum 4
✓ Published1🌍 Public
JJoe Rozman
Last edited Nov 21, 2024
Created on Nov 21, 2024
This interactive pie chart visualizes mental health survey data, showing average scores of selected well-being metrics across categorical attributes like academic year, gender, or university. Users filter the dataset using dropdown menus for attribute, metric, and university, with a reset button restoring defaults. The visualization uses D3.js’s `rollups` and `pie` functions to aggregate and generate arcs, while `arc` and `schemeCategory10` style the slices. Hovering reveals tooltips with precise values, and the chart reads from a local CSV file.
AI-generated descriptionAn 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:
MIT Licensed