Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Rendering Data with React & D3

Public visualization

Viewing a saved revision (read-only)

3c978e07b83345c99022b9ee659591a5

Fork of Rendering Data with React & D3

0 stars0🌍 Public
RRED98310
Last edited Feb 25, 2021
Created on Feb 25, 2021

This example shows a bar chart of global video game sales by genre, with bars rendered as SVG rectangles whose heights are scaled by sales figures. The code loads CSV data using `d3.csv` and manages state with React hooks (`useState`, `useEffect`), while `d3.scaleBand` and `d3.scaleLinear` map genres and sales values to pixel positions. The chart is drawn entirely through React components that return SVG elements, demonstrating a hybrid approach where D3 handles data processing and scales, while React handles the DOM rendering.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities, and uses React to render the data as a radial burst!