Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading Data with React & D3

Public visualization

Fork of Loading Data with React & D3

0 stars0🌍 Public
Aagreenyy
Last edited Mar 16, 2022
Created on Mar 16, 2022

This example displays a choropleth map of the UK's European Electoral Regions, rendered as shaded polygons with gray fills and teal borders on a blank canvas. It loads GeoJSON boundary data from a GitHub repository using `d3.json`, then projects the coordinates with `d3.geoMercator`. The map is drawn through `d3.geoPath` directly onto a Canvas context, with React managing the page structure but not the map’s state. The visualization demonstrates combining D3’s geographic utilities with a canvas-based rendering pipeline.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities, and uses React state to keep track of the data.

Comments

Sign in to join the discussion.

MIT Licensed