Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Viewing a saved revision (read-only)

06a7c46bc6634119be4e9f3678183459

Making a Bar Chart

0 stars1🌍 Public
Iihatelearning
Last edited Feb 12, 2021
Created on Feb 12, 2021

This example displays a horizontal bar chart ranking the populations of ten countries, with population values scaled to thousands. It uses D3 version 6 APIs such as `d3.select`, `d3.csv`, `d3.scaleLinear`, `d3.scaleBand`, `d3.axisLeft`, and `d3.axisBottom` to render the chart as an SVG. The data is loaded from a CSV file, and the bars are drawn as SVG rectangles with a steelblue fill.

AI-generated description