Skip to main content
100%

Fork of Making a Bar Chart

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

Similar vizzes