Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Making a Bar Chart

Public visualization

Viewing a saved revision (read-only)

5eb3fcf64dcd432cb26bcdadc88a5e61

Fork of Making a Bar Chart

0 stars1🌍 Public
MMajaha21
Last edited Apr 6, 2021
Created on Apr 6, 2021
Forked from Making a Bar Chart

This horizontal bar chart displays population figures for ten countries, with each bar’s length proportional to the population value from a CSV file. The visualization uses D3 v6’s `scaleLinear` for the x-axis, `scaleBand` for categorical y-axis positioning, and SVG `rect` elements for bars. Data is loaded asynchronously via `d3.csv` and multiplied by 1000 before rendering. Axes are generated using `axisLeft` and `axisBottom`, with margins applied through a translated group element.

AI-generated description