Customizing Axes
This bar chart displays the infant mortality rates for the ten most populous U.S. states, using 2018 population estimates from the United Nations World Population Prospects. It highlights custom axis styling, including removed domains and tick lines on the y-axis, a formatted bottom axis with a custom tick size, and a rotated axis label. Built with D3 v5, the visualization uses `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to render SVG elements, while CSS controls text and tick appearance. The data is loaded from a CSV file and mapped to rect widths.
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.
See also the first bar chart visualization that this one builds on: Making a Bar Chart.