Fork of React & D3 Starter
✓ Published0🌍 Public
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 descriptionMIT Licensed