Skip to main content
100%

Charts

✓ Published0🌍 Public
Rries62
Last edited Aug 25, 2021
Created on Aug 24, 2021
Forked from React Starter

This example presents a horizontal bar chart comparing the populations of the top 10 countries in 1962, using data from the UN Population dataset. The visualization is built with React and D3 v7, rendering SVG elements through a declarative component structure. It employs `d3.csv` to fetch and parse the data, `d3.scaleLinear` for the x-axis, and `d3.scaleBand` for the categorical y-axis. The code also generates grid lines and axis labels using D3's scale methods, with styling applied via CSS.

AI-generated description
MIT Licensed

Similar vizzes