Skip to main content
100%

Interactive Plot

✓ Published0🌍 Public
JJinyu Wang
Last edited Dec 14, 2021
Created on Dec 14, 2021
Forked from HTML Starter

This interactive plot visualizes survey data on youth smoking cessation, showing how long individuals have quit smoking across different years, with each dot’s color indicating age group. Users can switch the color encoding between age, sex, or grade via a dropdown menu. The visualization uses D3 v6 with SVG rendering, leveraging `d3.scaleOrdinal` for categorical color mapping, `d3.legendColor` for legends, and `d3.zoom` for interactive panning and zooming. Data is loaded as CSV from a remote repository, and transitions are applied when the selected grouping changes.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes