Skip to main content
100%

Fork of React & D3 Starter

✓ Published0🌍 Public
Rrevanthdasari10@gmail.com
Last edited Mar 7, 2026
Created on Mar 7, 2026
Forked from React & D3 Starter

A React component combines D3.js v7 scales and SVG shapes to display 150 days of simulated coffee shop data from a local CSV file. Orange bars encode daily sales values on a band scale while a blue line path shows profit trends on the same linear y-axis. The visualization uses d3.csv for data loading, d3.scaleBand and d3.scaleLinear for positioning, and d3.axisBottom/axisLeft for tick marks. The React wrapper manages the SVG container through a ref and useEffect hook.

AI-generated description
MIT Licensed

Similar vizzes