Skip to main content
100%

Fork of Fork of React & D3 Starter

✓ Published0🌍 Public
Rrevanthdasari10@gmail.com
Last edited Mar 7, 2026
Created on Mar 7, 2026

This example shows a bar chart of coffee product sales, plotting each product’s total units sold with steel-blue bars on an SVG canvas. It loads `coffee_sales.csv` via `d3.csv`, parses the `Units_Sold` values, and uses `d3.scaleBand` for the x-axis, `d3.scaleLinear` for the y-axis, plus `d3.axisBottom` and `d3.axisLeft` for ticks. The chart is rendered with D3 v7 selections inside a plain HTML page, while the accompanying React code uses `useRef` and `useEffect` only to display a static text message.

AI-generated description
MIT Licensed

Similar vizzes