Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a bar chart

Public visualization

Making a bar chart

0 stars1🌍 Public
KKaleb LaBarrie
Last edited Sep 17, 2021
Created on Sep 16, 2021

A horizontal bar chart displays population estimates for ten countries from a CSV file, with each bar’s length proportional to population. The visualization uses d3.csv to load data, d3.scaleLinear for the x-axis, d3.scaleBand for the y-axis, and d3.axisLeft and d3.axisBottom for ticks. Bars are appended as SVG rectangles with steelblue fill, positioned using the scales’ output ranges.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed