Skip to main content
100%

Lets make a BarChart

✓ Published0🌍 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.

MIT Licensed

Similar vizzes