Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Viewing a saved revision (read-only)

c96390c14a804ecbb618c76ad8693fda

Making a Bar Chart

0 stars2🌍 Public
HHasideluxe
Last edited Jul 21, 2020
Created on Jul 21, 2020
Forked from Making a Bar Chart

This bar chart displays the populations of the ten most populous countries, with horizontal bars sorted by population size. The visualization uses d3.scaleLinear for the x-axis and d3.scaleBand for the y-axis, with axes rendered via d3.axisLeft and d3.axisBottom. Data is loaded from a CSV file using d3.csv, and population values are multiplied by 1000 to reflect actual figures. The SVG rectangles are colored steelblue, with margins applied to position the chart within the 960x500 viewport.

AI-generated description