Skip to main content
100%

Barchar

✓ Published0🌍 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
MIT Licensed

Similar vizzes