Skip to main content
100%

Assignment 6

✓ Published0🌍 Public
BBhargav Reddy
Last edited Oct 17, 2025
Created on Oct 17, 2025
Forked from D3 Starter

This bar chart shows total sales aggregated by product line, using a simple grouped bar layout where each bar’s height encodes the summed sales value. The chart is built with D3 v7, loading data from a CSV file and using `d3.rollup` to group and sum sales per product category. SVG rectangles are scaled with `d3.scaleBand` and `d3.scaleLinear`, with axes generated via `d3.axisBottom` and `d3.axisLeft`. The title and rotated x-axis labels complete the visualization, rendered entirely in SVG.

AI-generated description
MIT Licensed

Similar vizzes