Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of React & D3 Starter

Public visualization

Viewing a saved revision (read-only)

396396e031314b7d839427d477f815e5

Fork of React & D3 Starter

0 stars0🌍 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