Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Lets make a BarChart

Public visualization

Lets make a BarChart

0 stars0🌍 Public
Llukastieber
Last edited Aug 10, 2020
Created on Aug 10, 2020

A bar chart displays the top 10 most populous countries, with horizontal bars ordered by rank and sized by population in thousands. The chart uses D3 v5’s `scaleLinear` and `scaleBand` to map population values and country names, with `axisLeft` and `axisBottom` providing labeled ticks. Population data is loaded from a CSV file via `d3.csv`. The React framework wraps the rendering, which outputs SVG elements styled with steelblue rectangles and custom text for the title and axis labels.

AI-generated description

React Starter code.

Comments

Sign in to join the discussion.

MIT Licensed