Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making BAR Chart

Public visualization

Making BAR Chart

0 stars0🌍 Public
Ssyedmdbuhari
Last edited Dec 3, 2019
Created on Dec 1, 2019

A horizontal bar chart displays population figures for eight countries, with bars sorted by country name. It uses D3 v5’s `scaleLinear` for the x-axis, `scaleBand` for the y-axis, and SVG `rect` elements for the bars. Data is loaded from a CSV file via `csv()`, and axes are generated with `axisLeft` and `axisBottom`. Population values are multiplied by 1000, and bars are styled with a steelblue fill.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed