Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Assignment 6 sowjanya

Public visualization

Viewing a saved revision (read-only)

17d4eeab03244ab280bf49cd1b1d0664

Assignment 6 sowjanya

0 stars0🌍 Public
Ssaisowjanyaedupuganti.24f@gmail.com
Last edited Oct 19, 2025
Created on Oct 18, 2025
Forked from BarChart

This bar chart displays the average sales for each product category from a store dataset loaded from a GitHub-hosted CSV file. The visualization uses D3 v7 and renders as an SVG, with `d3.scaleBand` mapping product names to the x-axis and `d3.scaleLinear` mapping average sales values to the y-axis. The code aggregates the raw data using `d3.rollups` and `d3.mean` to compute per-product averages before drawing steelblue rectangles. Both axes are labeled, and a chart title is added above the plot.

AI-generated description