Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Chathurya - Fork of ICE-6 Bar Graph

Public visualization

Viewing a saved revision (read-only)

9b8ec89aca9b48238d9104d4849d1b3b

Chathurya - Fork of ICE-6 Bar Graph

0 stars0🌍 Public
CChathurya
Last edited Mar 17, 2023
Created on Mar 17, 2023

This interactive bar chart displays the magnitudes of US earthquakes in 2021, with each bar labeled by its source location. It uses React to manage state and render the SVG, while d3’s `csv` loader fetches the remote dataset, and `scaleBand` and `scaleLinear` map the categorical locations and numeric magnitudes to the plot’s axes. Gridlines are drawn with d3’s `scaleLinear.ticks`, and bars are simple SVG `rect` elements.

AI-generated description

US Earthquakes Data 2021