Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Viewing a saved revision (read-only)

d35022607d9647b1b2eca77e0136db35

Making a Bar Chart

0 stars4🌍 Public
Pprincit
Last edited Mar 24, 2020
Created on Mar 24, 2020
Forked from HTML Starter

This example shows a horizontal bar chart of country populations, ranking thirteen nations from China to the Philippines. The bars are rendered as SVG rectangles filled with steel blue, with a left axis displaying country names and a bottom axis showing population counts. The chart uses d3.csv to load the data, d3.scaleLinear and d3.scaleBand for scaling, and d3.axisLeft and d3.axisBottom to generate the axes. Population values are converted from thousands using array methods before rendering.

AI-generated description