Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Barchart

Public visualization

Making a Barchart

0 stars1🌍 Public
PPourmahmood
Last edited Oct 30, 2020
Created on Oct 30, 2020

This bar chart displays the populations of ten countries, using horizontal bars sorted by value. Built with D3 v5, it loads data from a CSV file and renders as SVG. The visualization uses `d3.scaleLinear` for the x-axis, `d3.scaleBand` for the categorical y-axis, and `d3.axisTop` and `d3.axisLeft` to generate ticks. Bars are appended as `rect` elements, with population values scaled by a factor of 1,000.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed