Skip to main content
100%

Making a Bar Chart

✓ Published0🌍 Public
Jjayjoepark
Last edited Mar 29, 2019
Created on Mar 29, 2019
Forked from Making a Bar Chart

A horizontal bar chart compares population estimates for thirteen world regions, with bar lengths scaled proportionally and fill colors transitioning from IndianRed to Red based on value. The visualization uses d3.csv, d3.scaleLinear, d3.scaleBand, d3.axisLeft, and d3.axisBottom. A green clickable circle toggles an animated width transition via d3.transition, shrinking or growing all bars simultaneously. Hovering over a bar updates a foreignObject div with the region name and population, while data originates from the 2017 United Nations World Population Prospects.

AI-generated description

This bar chart shows population of the thirteen most populous countries. The data comes from the year 2018 estimate in United Nations: World Population Prospects 2017.

Note: That link doesn't give data for the year 2018 but for the year 2015. In this example, I've used the data provided in the class (which is close to the downloaded data).

MIT Licensed

Similar vizzes