Skip to main content
100%

retail transactions

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

This bar chart visualizes total sales revenue by product category from the `retail_transactions.csv` dataset. It loads data with `d3.csv`, aggregates the "Total Amount" field using `d3.rollups` and `d3.sum`, and renders the result as steel-blue bars. The chart uses `d3.scaleBand` for the categorical x-axis and `d3.scaleLinear` for the numeric y-axis, with rotated category labels and value labels above each bar. The SVG canvas is 900 by 520 pixels with specified margins.

AI-generated description
MIT Licensed

Similar vizzes