Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of React & D3 Vibecoding Starter

Public visualization

Viewing a saved revision (read-only)

32b6a085b4fb4919998666c70bd8e09f

Fork of React & D3 Vibecoding Starter

0 stars1🌍 Public
EEmily Hudson
Last edited Oct 1, 2025
Created on Oct 1, 2025

This example shows an interactive bar chart of a small CSV dataset mapping letters to counts. The React app manages a state object for the selected letter, while D3 v7 renders the SVG, including axes, bars, and a title. Clicking a bar toggles its selection, changing its fill color and opacity. The chart uses D3’s `scaleBand` for the x-axis, `scaleLinear` for the y-axis, and React’s `useEffect` and `useRef` to coordinate state and dimensions.

AI-generated description