Skip to main content
100%

Charts for Fun

✓ Published0🌍 Public
BBrenda199708
Last edited Apr 5, 2020
Created on Apr 5, 2020
Forked from Charts for Fun

This example presents a data visualization with a bar chart and scatter plot, both using red semi-transparent shapes, that render population data from the United Nations World Population Prospects 2017. The bar chart displays the top 10 most populous countries, while the scatter plot appears to plot timestamp and Basel temperature data, though the title refers to population. The code uses D3 v5 APIs including `scaleBand`, `scaleLinear`, `scalePoint`, `axisLeft`, `axisBottom`, and `format` to customize axes and tick labels, rendering to SVG elements with a margin-based layout.

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. It also demonstrates customization of D3 axes.

See also the first bar chart visualization that this one builds on: Making a Bar Chart.

MIT Licensed

Similar vizzes