Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Making a Bar Chart

Public visualization

Fork of Making a Bar Chart

0 stars1🌍 Public
0057SatvikDamera
Last edited Mar 8, 2023
Created on Mar 8, 2023
Forked from Making a Bar Chart

This example visualizes the top 10 most populous countries as a horizontal bar chart, with population values scaled linearly and sorted by descending size. The chart uses D3 v5’s `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to render SVG bars and axes, while the `csv` loader imports population data from a local CSV file. Axis labels and a chart title are added via SVG text elements, and population tick labels are formatted using D3’s `format` function with abbreviations for billions.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed