Skip to main content
100%

Let's make Bar Chart with D3.js!

✓ Published0🌍 Public
MMayaJava
Last edited Mar 31, 2020
Created on Mar 31, 2020

This bar chart displays population estimates for five countries or regional groupings, with horizontal bars whose lengths are proportional to each value. The visualization is built with React and D3 v5, using `d3.csv` to load the dataset and `d3.scaleLinear` and `d3.scaleBand` to map population counts and country names to pixel coordinates. Bar rectangles are appended to an SVG canvas, with heights and widths derived from the scales, and the chart renders without axes or labels.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes