Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

D3 Bar Chart

Public visualization

Viewing a saved revision (read-only)

0b0a64f9177a45648565d49d87b5db13

D3 Bar Chart

0 stars1🌍 Public
Rrdeichert
Last edited Dec 12, 2019
Created on Dec 12, 2019
Forked from Customizing Axes

This bar chart displays the populations of the top 10 most populous countries, using a horizontal layout with country names on the y-axis and population values on the x-axis. The visualization is built with D3 v5, specifically using `scaleLinear` for the x-axis, `scaleBand` for the categorical y-axis, and `axisLeft`/`axisBottom` for the axes. Data is loaded from a CSV file and multiplied by 1000 to reflect actual population figures. The SVG rendering uses steelblue rectangles, with margins and padding handled through D3’s scale and transform methods.

AI-generated description