Skip to main content
100%

Fork of ICE-6 Tutorial Bar Chart

✓ Published0🌍 Public
SSreekarveeravelly
Last edited Mar 8, 2022
Created on Mar 8, 2022

This horizontal bar chart displays the top 10 countries by accident count for 2015, sourced from the United Nations World Population Prospects 2017. The visualization uses D3 v5 with SVG rendering, employing `scaleLinear` and `scaleBand` for the x and y axes, respectively. The code customizes the axes by removing domain lines, applying a tick formatter that converts large numbers to abbreviated units, and adding axis labels and a title. Data is loaded asynchronously via `d3.csv` from a GitHub gist.

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.

MIT Licensed

Similar vizzes