Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Making a Bar Chart!

Public visualization

Making a Bar Chart!

0 stars0๐ŸŒ Public
Vvsapro
Last edited Mar 17, 2023
Created on Mar 16, 2023

This example displays a horizontal bar chart of country populations, with values read from a CSV file and scaled by 1,000. Using D3 v5, it employs `d3.csv` to load the data, `scaleLinear` and `scaleBand` to map population and country names to positions, and `axisLeft` and `axisBottom` to render axes. Rectangles are appended to an SVG group with margins, sized by the scales, and styled with a steelblue fill.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed