Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

making bar chart

Public visualization

making bar chart

0 stars0🌍 Public
Ttayyabanisar
Last edited May 15, 2020
Created on May 15, 2020
Forked from making bar chart

This horizontal bar chart displays the population of ten countries, sorted by value, using a clean SVG output. Built with D3 v5, the visualization reads from a local CSV file, parsing population numbers and scaling them by one thousand. The code employs `d3.csv` to load the data, `d3.scaleLinear` for the quantitative x-axis, and `d3.scaleBand` to position categorical bars with equal height. A margin-based group element positions the bars, with each bar's width representing the population magnitude.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed