Skip to main content
100%

Untitled

✓ Published0🌍 Public
NNikithakatta30
Last edited May 16, 2023
Created on May 15, 2023
Forked from D3 Starter

This interactive scatter plot visualizes the relationship between "Menus" (a perceived social metric) and depression levels across different regions and years, using data loaded via `d3.csv`. The visualization compares various quantitative attributes—Freedom, Corruption, Generosity, and Health—against the "Allages" depression score, with data points colored by year. Users select a specific region and X-axis attribute through dropdown menus, which triggers an `update` function to filter the dataset, rescale the linear axes via `d3.scaleLinear`, and redraw the circles. The code uses D3 v6 APIs for SVG rendering, axis generation (`d3.axisBottom`, `d3.axisLeft`), and categorical color assignment (`d3.scaleOrdinal`).

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes