Skip to main content
100%

Fork of Making a Bar Chart

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

Similar vizzes