Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Refactored Bar Chart

Public visualization

Viewing a saved revision (read-only)

ee28840e20244de5bfb54f6e8385ca5f

Fork of Fork of Refactored Bar Chart

0 stars0🌍 Public
PPatrick Feldman
Last edited Mar 3, 2021
Created on Mar 3, 2021

This example visualizes CSS named colors as a scatterplot, showing the number of move-ins per day of the week from a CSV dataset. The chart uses React state to manage data loading and rendering, with D3 v6 functions like `scaleLinear` and `extent` to compute scales and domains. SVG circles render the aggregated data points, while custom React components handle axes and marks. The code includes formatting utilities like `format` and relies on `useEffect` and `useState` hooks for data fetching.

AI-generated description

A program that loads in some D3 [data about CSS named colors] and uses React STATE to keep track