Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Make a bar chart

Public visualization

Make a bar chart

0 stars1🌍 Public
1123fischer
Last edited Nov 15, 2020
Created on Nov 15, 2020

A horizontal bar chart displays population figures for ten countries, ranked from largest to smallest. The chart uses D3 v5 with `csv` to load data and `scaleBand` for the categorical y-axis, while `scaleLinear` maps population values to bar widths. Axes are added with `axisLeft` and `axisBottom`, and bars are rendered as SVG `rect` elements. The data is read from `data.csv`, with population values multiplied by one thousand during preprocessing.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed