Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a bar chart

Public visualization

Viewing a saved revision (read-only)

a58c8ab22d1f472c879e4ec6874c2d06

Making a bar chart

0 stars1🌍 Public
Jjf1978
Last edited Jun 2, 2020
Created on Jun 2, 2020
Forked from Let's make a face

This example shows a horizontal bar chart of country sizes, using D3 v5 with an SVG rendering approach. The chart maps country names to the y-axis and size values to the x-axis using `scaleBand` and `scaleLinear`, with axes added via `axisLeft` and `axisBottom`. Data is loaded from a CSV file and parsed with `d3.csv`, and bars are rendered as rectangles with a steelblue fill.

AI-generated description