Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Making a Bar Chart

0 stars0🌍 Public
11995ana
Last edited Sep 3, 2020
Created on Sep 2, 2020
Forked from Making a Bar Chart

This example demonstrates a horizontal bar chart of the ten most populous countries, using population data loaded from a CSV file by the D3 `csv` function. The visualization maps population counts to bar widths with `d3.scaleLinear` and countries to vertical positions with `d3.scaleBand`, rendered as SVG rectangles. Axes are added using `d3.axisLeft` and `d3.axisBottom`, with the initial SVG canvas defined in the HTML and styled via CSS.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed