Skip to main content
100%

Vinay Task 1

✓ Published1🌍 Public
VVinay Kumar Parvathini
Last edited Mar 8, 2026
Created on Mar 8, 2026
Forked from React & D3 Starter

This example shows total sales aggregated by product category as a bar chart, with steelblue bars and labeled axes. It loads tabular data from a GitHub Gist using d3.tsv, aggregates values with d3.rollup and d3.sum, and renders static SVG via React’s useRef hook. The chart uses d3.scaleBand for categories and d3.scaleLinear for the sales axis, with d3.axisBottom and d3.axisLeft providing tick marks.

AI-generated description
MIT Licensed

Similar vizzes