Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Making a Bar Chart

0 stars1🌍 Public
GGeolffrey S Mena
Last edited Aug 5, 2019
Created on Aug 4, 2019

This example shows a bar chart of the populations of the ten most populous countries in 2020, drawn as an SVG. The chart uses horizontally-oriented bars with a linear population scale on the x-axis and a band scale for country names on the y-axis. Built with D3 v5, it loads data from a CSV file and uses `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to construct and label the visualization. The bars are rendered as SVG rectangles with a steelblue fill.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed