Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Barchart pt2

Public visualization

Fork of Barchart pt2

0 stars0🌍 Public
Ddiegobrivo
Last edited Aug 12, 2022
Created on Aug 11, 2022
Forked from Barchart

This visualization displays a horizontal bar chart of population values from a CSV file, with bars rendered as rectangles scaled by population and positioned by categorical labels. The example uses d3.csv to load the data, then applies d3.scaleLinear for the x-axis and d3.scaleBand for the y-axis, both in d3 v5. Each row’s ARPA field is multiplied by 1000 before rendering. The SVG canvas is 960 by 500 pixels, and bars are appended dynamically with data joins using selectAll and enter.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed