Skip to main content
100%

Fork of Refactored Bar chart with React & D3

✓ Published0🌍 Public
Nnutriologa.aranzaperea@gmail.com
Last edited Feb 18, 2026
Created on Feb 18, 2026

This example shows a horizontal bar chart of country populations for the year 2020, sourced from the UN Population 2019 dataset. Rendered as SVG via React components, it uses d3.scaleBand for the y-axis and d3.scaleLinear for the x-axis, with separate AxisBottom, AxisLeft, and Marks components. The code loads data asynchronously with d3.csv and slices the first ten entries, while the axes and bars are generated using React’s map function and JSX.

AI-generated description
MIT Licensed

Similar vizzes