Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Viewing a saved revision (read-only)

15c1e1a378304d9d9cd529125baf832f

Making a Bar Chart

0 stars1🌍 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.