Skip to main content
100%

Retail sales bar chart

✓ Published0🌍 Public
KKOLLIPATI NIKHIL
Last edited Oct 19, 2025
Created on Oct 19, 2025
Forked from CV: Bar Chart

This visualization is a horizontal bar chart comparing the total sales amounts for the top ten product categories from a retail transaction dataset. The chart is built using D3.js version 7 within a React application, employing a data join approach to render and update the SVG elements. The bars are colored teal, with a clickable red highlight for a selected category. It uses `scaleLinear` and `scaleBand` for the axes, and `axisBottom` and `axisLeft` for the tick marks, with the data loaded from a local `data.csv` file and aggregated using `d3.rollups`.

AI-generated description
MIT Licensed

Similar vizzes