Skip to main content
100%

Making a Bar Chart

✓ Published3🌍 Public
Jjay
Last edited Feb 10, 2020
Created on Feb 6, 2020
Forked from Stylized Bar Chart

This example uses the D3.js v5 join pattern to animate a collection of fruit as circles. An initial bowl of five apples shrinks as they are eaten, and one apple transitions into a yellow lemon, demonstrating data joins with `selection.enter`, `selection.merge`, and `selection.exit`. The circles use a `scaleOrdinal` for color and radius, and each transition applies a 1-second duration to position, size, and removal. The bar chart title references the United Nations population data, but the code itself focuses on the fruit-bowl animation.

AI-generated description

A program that shows the top 10 most populous countries as a pathetic bar chart with no axes.

Data: United Nations World Population Prospects 2019.

MIT Licensed

Similar vizzes