Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Dishonest Bar Chart

Public visualization

Viewing a saved revision (read-only)

8da37862dcf240d1be90f36ff0d7771d

Dishonest Bar Chart

0 stars0🌍 Public
JJimMaltby
Last edited Nov 14, 2020
Created on Nov 14, 2020

This visualization presents a stacked bar chart of the top 10 most populous countries using 2018 United Nations population estimates. Each bar is divided into three colored segments—red, yellow, and orange—representing quarter, third, and remainder population portions. The chart uses d3.stack to generate the stacked series, d3.scaleBand for the categorical country axis, and d3.scaleLinear for the population scale. Country names appear on the left y-axis, while population values are formatted with abbreviated labels along the bottom x-axis.

AI-generated description

This is to play with a simple bar chart to develop. From C.Kelleher Dishonest Bar Chart

bar chart shows population of the top 10 most populous countries. data from the year 2018 estimate in United Nations: World Population Prospects 2017.

We adapt the data here to provide a stack from the 1/4, 1/3 and the remainder of the population. Using the great tutorial: http://using-d3js.com/05_06_stacks.html