Retail Sales Bar Chart
✓ Published1🌍 Public
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 descriptionMIT Licensed