Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a bar chart

Public visualization

Making a bar chart

0 stars2🌍 Public
RRod Potter
Last edited Apr 23, 2019
Created on Apr 23, 2019
Forked from Making a bar chart

This bar chart displays the populations of the ten most populous countries, using horizontal bars ordered by country name. The visualization loads data from a CSV file and renders SVG rectangles scaled with d3.scaleLinear and d3.scaleBand, with axes generated via d3.axisLeft and d3.axisBottom. Population values are multiplied by 1000 during data preparation, and the chart applies a fixed margin layout within an SVG container.

AI-generated description

This bar chart shows population of the 10 most populous countries.

Comments

Sign in to join the discussion.

MIT Licensed