Skip to main content
100%

Bar chart

✓ Published0🌍 Public
DDarpan313
Last edited Jan 21, 2020
Created on Jan 20, 2020
Forked from Let's make face!

A bar chart displays the populations of ten countries, from China at the top down to Mexico, with each bar’s length proportional to its value in thousands. The visualization uses D3 v5’s `scaleLinear` and `scaleBand` to map population and country names, respectively, while rendering SVG rectangles via manual selection and `append`. Axes are generated with `axisLeft` and `axisBottom`, and the data is loaded asynchronously from a CSV file using `csv`. The chart is embedded in a React-compatible HTML page with D3’s minimal API.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes