Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Viewing a saved revision (read-only)

fe2323b302114b96baee7c6013c4eb2b

Making a Bar Chart

0 stars0🌍 Public
Mmanalhilali
Last edited Nov 29, 2020
Created on Nov 29, 2020
Forked from Making a Bar Chart

This example shows a horizontal bar chart of the ten most populous countries, using population data loaded from a CSV file. It renders as SVG with D3 v5, using `d3.csv`, `d3.scaleLinear`, `d3.scaleBand`, `d3.axisLeft`, and `d3.axisBottom`. The bars are filled with steelblue, the x-axis tick labels are formatted with `d3.format` to abbreviate large numbers, and grid lines extend from the x-axis across the plot area.

AI-generated description