Skip to main content
100%

Fork of Refactored Bar Chart

✓ Published0🌍 Public
Ssaiabhishekmunnangi@gmail.com
Last edited Oct 20, 2025
Created on Oct 20, 2025

This is a bar chart that ranks the top 10 BMW models by total sales volume from the provided dataset, which includes sales records with attributes like model, year, region, and sales volume. The chart uses a horizontal bar layout where bar length encodes sales volume, and each model is labeled on the y-axis. Built with React and D3 v7, the visualization computes aggregation via `d3.rollups` and `d3.sum`, then sorts and slices the data to highlight the highest-selling models. The layout uses `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis, with visual elements rendered as SVG rectangles, and axes are drawn using custom components and `d3.axisBottom`.

AI-generated description
MIT Licensed

Similar vizzes