Skip to main content
100%

Fork of Barchart with D3.js

✓ Published1🌍 Public
Wwieswies
Last edited Feb 7, 2022
Created on Feb 4, 2022

This example shows a horizontal bar chart of population data for the ten most populous countries, with each bar’s length proportional to population and country names on the y-axis. Using D3 v5, the code loads `data.csv`, parses populations, and maps values via `scaleLinear` for the x-axis and `scaleBand` for the y-axis. It renders an SVG with `axisLeft` and `axisBottom` for labeling, while rectangles are sized using the computed scales. Orange bars and styled text come from `styles.css`.

AI-generated description
MIT Licensed

Similar vizzes