Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
Ssravaniboggaram
Last edited May 24, 2021
Created on May 24, 2021
Forked from Smiley Face

This example shows a horizontal bar chart of country populations using a bar for each row of data. It renders SVG bars with a steelblue fill, using D3 v6 functions such as `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom`. The code loads population data from a CSV file, multiplies the values by 1000, and displays them with margins and axes. The chart is built in a React-free vanilla JavaScript setup within an HTML page.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes