Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Making a Bar Chart

0 stars0🌍 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

Comments

Sign in to join the discussion.

MIT Licensed