Skip to main content
100%

Making barchart$()

✓ Published1🌍 Public
Rralfz123
Last edited Nov 4, 2020
Created on Nov 3, 2020

This example displays a horizontal bar chart of religious populations across countries, using a dataset loaded from a CSV file. The bars are rendered as SVG rectangles, with a linear scale mapping population values to widths and a band scale positioning each country along the vertical axis. The code leverages d3.csv, d3.scaleLinear, d3.scaleBand, and d3.axisLeft/axisBottom to construct the visualization.

AI-generated description

Making a barchart using this video of Curran's skills.

MIT Licensed

Similar vizzes