Vinay Task 1
✓ Published1🌍 Public
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 descriptionMIT Licensed