Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Viewing a saved revision (read-only)

72a188bc4ac24941a1d7540e985a5f6b

Making a Bar Chart

0 stars1🌍 Public
Nnick-yadav
Last edited Aug 11, 2020
Created on Aug 9, 2020

This bar chart displays the populations of ten countries, scaled from a CSV dataset. It uses D3 v5’s `scaleLinear` and `scaleBand` to map population values to bar widths and country names to vertical bands, with `axisLeft` and `axisBottom` generating the axes. Bars are rendered as SVG rectangles, with data loaded via `d3.csv` and population values multiplied by 1000 to reflect thousands.

AI-generated description