Skip to main content
100%

Making a Barchart

✓ Published1🌍 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
MIT Licensed

Similar vizzes