Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar chart

Public visualization

Bar chart

0 stars1🌍 Public
WWahe3bru
Last edited Feb 4, 2020
Created on Feb 4, 2020
Forked from Bar chart

A horizontal bar chart displays population counts for ten countries, using bar length to encode values from a CSV dataset. The visualization uses D3 v5 with SVG rendering, employing `scaleLinear` for the x-axis and `scaleBand` for categorical y-axis labels. Axes are generated with `axisLeft` and `axisBottom`, while `selectAll`, `data`, and `.enter()` append rectangles for each bar. Population numbers are parsed and multiplied by 1000, with margins applied to the chart layout.

AI-generated description

following FCC youtube channel on D3

Comments

Sign in to join the discussion.

MIT Licensed