Skip to main content
100%

Let's make a barchart with D3.js

✓ Published2🌍 Public
BB Sundaresan
Last edited Jun 30, 2020
Created on Jun 30, 2020
Forked from Hello VizHub

This example shows a bar chart of the top 10 countries by population, using a linear scale for the x-axis and a band scale for the y-axis. The chart renders population values with tick labels formatted in billions (B) and includes a title and axis label. Built with React and D3 v5, it loads data from a CSV file and draws SVG rectangles, using `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to construct the visualization.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes