Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Barchar

Public visualization

Viewing a saved revision (read-only)

9af300318a6248998cd227ce8c58d673

Barchar

0 stars0🌍 Public
HHombreLobotomia
Last edited Jul 17, 2019
Created on Jul 17, 2019
Forked from Barchar

This example shows a horizontal bar chart comparing the population of ten countries, with values loaded from a CSV file and formatted in thousands. The visualization uses D3 v5’s `scaleLinear` and `scaleBand` to map population counts and country names, while `axisLeft` and `axisBottom` render the axes. Bars are drawn as SVG rectangles with a steelblue fill, and the chart is positioned within margins applied to a single SVG group. The data is transformed by multiplying each population value by one thousand before rendering.

AI-generated description