Skip to main content
Explore
Solutions
Bespoke Studio
Pricing
Quick Start
Demo
Log in
Send feedback
✕
Tell us what works and what could be better. We read every submission.
Send feedback
✕
Tell us what works and what could be better. We read every submission.
Home
•
Fork Viz
Fork Viz
Create your own copy of this visualization.
Forking from
Refactored Bar Chart
Title
*
Description
This example shows the top 10 most populous countries from the United Nations World Population Prospects 2019 dataset as horizontal bars, with axes displaying country names and population values. The visualization uses React 16.9 and D3 v5, rendering SVG through React components. D3’s `scaleBand` and `scaleLinear` map the data to positions, while custom `AxisBottom` and `AxisLeft` components generate tick marks and labels. The `useData` hook loads the CSV and truncates it to ten rows before rendering the rectangles.
Visibility
Public
Private (only you), Pro
Unlisted (anyone with link)
Private work requires Pro.
Upgrade
Cancel
Fork Viz