Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Vertical Bar Chart

Public visualization

Vertical Bar Chart

0 stars0๐ŸŒ Public
Jjudietrich
Last edited Oct 4, 2021
Created on Oct 2, 2021
Forked from Stylized Bar Chart

This vertical bar chart visualizes the ten most populous countries, using data from the United Nations World Population Prospects 2019. The visualization renders as an SVG via React, with bars drawn by the custom `Marks` component. Categorical country names are placed on the x-axis via `xScale`, while the `yScale` maps population values to bar heights. The chart uses `d3.scaleBand` for the x-axis and `d3.scaleLinear` for the y-axis, with tick labels formatted using `d3.format`.

AI-generated description

A program that shows the top 10 most populous countries as a bar chart.

Data: United Nations World Population Prospects 2019.

Comments

Sign in to join the discussion.

MIT Licensed