Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Retail Sales Bar Chart

Public visualization

Viewing a saved revision (read-only)

71458127a1374c39a1a301574dec9f39

Fork of Retail Sales Bar Chart

0 stars0🌍 Public
KKOLLIPATI NIKHIL
Last edited Oct 19, 2025
Created on Oct 19, 2025

This example shows a bar chart of total retail sales aggregated by product category, highlighting the top 15 categories by revenue. It loads a CSV dataset and uses `d3.rollups` to group and sum the “Total Amount” field for each category. The visualization is rendered as an SVG using D3 v7, with a band scale for category positioning, a linear scale for sales values, gridlines, value labels on each bar, and rotated axis tick labels for readability.

AI-generated description