Skip to main content
100%

Scatter Plot with X Y Menus

✓ Published1🌍 Public
PPeter Maida
Last edited Oct 7, 2020
Created on Oct 7, 2020

This interactive scatter plot displays U.S. mortality statistics, letting users choose which demographic attributes or death types to plot on the x- and y-axes via ReactDropdown menus. The code uses the d3.csv loader, d3.scaleLinear, and d3.extent to parse and scale data from a Gist, then renders SVG circles and axes using React components such as AxisBottom, AxisLeft, and Marks. Only points matching a hard-coded "Total" age group are visible, with all other circles rendered at zero radius.

AI-generated description

A visualization constructed using React that shows the number of various types of deaths by demographics.

The data shown here comes from Gist: Deaths by Suicide, Firearms, Alcohol.

MIT Licensed

Similar vizzes