Making a Bar Chart
✓ Published0🌍 Public
This bar chart displays the number of employees in various occupations, using data from the United Nations’ World Population Prospects 2017. Built with D3 v5 and rendered as SVG, it shows a horizontal bar chart with a linear x-axis for employee counts, formatted with abbreviations, and a categorical y-axis for occupation names. The code customizes axes by removing domain lines and tick marks, and adds labels and a title. The chart uses `d3.scaleLinear`, `d3.scaleBand`, `d3.axisBottom`, and `d3.axisLeft`.
AI-generated descriptionThis 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