Skip to main content
100%

Retail Sales Bar Chart

✓ Published1🌍 Public
KKOLLIPATI NIKHIL
Last edited Oct 19, 2025
Created on Oct 19, 2025
Forked from D3 Starter

This bar chart shows total retail sales for the top 15 product categories, with each bar’s height representing the sum of transaction amounts. The visualization uses d3.csv to load tabular data, d3.rollups to aggregate totals by category, and d3.scaleBand with d3.scaleLinear to position and size bars. Value labels appear above each bar, while rotated category names and a gridline layer improve readability. The SVG rendering includes axis ticks formatted with d3.format, and the layout is driven by custom margins defined in the script.

AI-generated description
MIT Licensed

Similar vizzes