Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Make a BarChart

Public visualization

Make a BarChart

0 stars0🌍 Public
DDataFeast_71
Last edited Nov 16, 2020
Created on Nov 16, 2020
Forked from Make a BarChart

This bar chart displays population estimates for the top ten countries, with horizontal bars sorted by descending value from China to Mexico. It uses d3.csv to load the comma-separated data, then applies d3.scaleLinear for the x-axis and d3.scaleBand for the categorical y-axis. The SVG rendering relies on d3.axisLeft and d3.axisBottom to generate tick marks, while rectangular elements are appended and positioned via the band scale’s bandwidth.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed