Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Barchart pt2

Public visualization

Viewing a saved revision (read-only)

958c1cf32e304bf3846f75386a95ca08

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