Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
Eestulo
Last edited Oct 4, 2020
Created on Oct 3, 2020
Forked from HTML Starter

This example shows a horizontal bar chart of the top 10 most populous countries, with population values on the x-axis and country names on the y-axis. It uses D3 v6’s `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` APIs within a React-free SVG rendering. The data is loaded from a CSV file and parsed by multiplying the population column by 1000. Grid lines are drawn via tick size customization, and the left axis’s domain and tick lines are removed for a cleaner look.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes