🌍 Public
Viewing a saved revision (read-only)
398b49da7a3e49559f411653c198ec26
Retail sales 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