Skip to main content
100%

Making a Bar Chart

✓ Published0🌍 Public
Nnobuyamayoshi
Last edited May 2, 2020
Created on May 2, 2020
Forked from Making a Bar Chart

A horizontal bar chart displays population figures for ten countries, sorted in descending order from China to Mexico. The bars use a linear scale for population values and a band scale for country names, with axes labeled accordingly. Built with D3 v5, the visualization loads data from a CSV file, converts population strings to numbers, and renders the chart as SVG rectangles. The code employs d3.csv, d3.scaleLinear, d3.scaleBand, d3.axisLeft, and d3.axisBottom to construct the visualization.

AI-generated description
MIT Licensed

Similar vizzes