Skip to main content
100%

Fork of CO2 emissions bubble chart

✓ Published0🌍 Public
Oomniaabouhassan@gmail.com
Last edited Sep 26, 2024
Created on Sep 26, 2024

This interactive map visualization displays unemployment rates across U.S. states, using a blue sequential color scale where darker shades represent higher percentages. Built with D3.js, the code loads state boundaries from GeoJSON via topojson-client, applies the geoAlbersUsa projection, and renders paths using d3.geoPath with fill colors assigned through d3.scaleQuantize. A legend automatically generates color-to-value mappings using the invertExtent method, while the chart title and margin-based layout structure the composition. The visualization demonstrates choropleth mapping with data-driven styling and interactive SVG rendering.

AI-generated description

An 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:

Full Playlist: Constructing Visualizations

MIT Licensed

Similar vizzes