Customizing Axes
✓ Published0🌍 Public
This bar chart displays suicide counts by country, using data from 1979 to 2014 for Canada, France, and Germany. It customizes the D3 v5 axes by applying a linear scale to the quantitative x-axis and a band scale to the categorical y-axis. The code uses `axisBottom` and `axisLeft` to generate ticks, removes default domains and tick lines, and adds grid lines via `tickSize`. The x-axis labels use the `format` function for compact number display.
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.
MIT Licensed