Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
Mmellerjakub88
Last edited May 13, 2019
Created on May 13, 2019
Forked from Making a Bar Chart

This example visualizes the 2018 population estimates for the top ten most populous countries as a static bar chart, using data from the United Nations World Population Prospects 2017. The chart displays each country’s population in thousands via rectangular bars rendered in SVG, with the initial code loading and parsing the CSV data using `d3.csv` and converting population strings to numbers. The bar chart itself is not yet drawn—the current implementation only fetches and logs the data, while the SVG container is prepared with D3’s `select` and attribute helpers. The styling is defined in external CSS, with bars and text formatted in `styles.css`.

AI-generated description

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

MIT Licensed

Similar vizzes