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
YYasser Mohseni
Last edited Dec 28, 2020
Created on Dec 28, 2020

This example shows a bar chart of the population of ten countries, with labeled values on the x-axis and country names on the y-axis, rendered as SVG rectangles. Using D3 v5, the code loads data from the UN World Population 2017 dataset and applies a linear scale for population counts and a band scale for categorical countries. The chart draws its axes via `axisLeft` and `axisBottom`, and populates the graphic with a data join that appends `rect` elements.

AI-generated description

This data comes from UN World Population 2017

Comments

Sign in to join the discussion.

MIT Licensed