Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar chart

Public visualization

Viewing a saved revision (read-only)

fa7a6b7541614e4bb1f0caa58a46c75b

Bar chart

0 stars0🌍 Public
Llohitsai62@gmail.com
Last edited Oct 20, 2025
Created on Oct 19, 2025
Forked from HTML Starter

A horizontal bar chart ranks the 20 best-selling smartphone models by units sold, using a dark theme and brand-based color gradients. Built with React and D3 v6, it loads CSV data, sorts and slices it, then renders SVG bars with hover tooltips, gridlines, and labels. The chart maps model names to the y-axis and units sold to the x-axis, with D3’s `scaleBand` and `scaleLinear` handling layout and `scaleOrdinal` assigning colors.

AI-generated description