Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Barchart

Public visualization

Viewing a saved revision (read-only)

a7804b8497fc4d21a23a45420f84784a

Making a Barchart

0 stars1🌍 Public
PPourmahmood
Last edited Oct 30, 2020
Created on Oct 30, 2020

This bar chart displays the populations of ten countries, using horizontal bars sorted by value. Built with D3 v5, it loads data from a CSV file and renders as SVG. The visualization uses `d3.scaleLinear` for the x-axis, `d3.scaleBand` for the categorical y-axis, and `d3.axisTop` and `d3.axisLeft` to generate ticks. Bars are appended as `rect` elements, with population values scaled by a factor of 1,000.

AI-generated description