Skip to main content
100%

D3.js

✓ Published2🌍 Public
Aaizazhussain234
Last edited May 31, 2020
Created on Mar 24, 2020
Forked from HTML Starter

This example shows a horizontal bar chart of the ten most populous countries, using population data loaded from a CSV file. The chart renders as SVG within a React framework, with D3 v5 handling the scales and axes via `scaleLinear` and `scaleBand`. The code imports specific functions from the `d3` package, including `csv`, `max`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom`, to position the bars and axis labels. Each bar’s width corresponds to its population value, scaled against the maximum population in the dataset.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes