Customizing Axes
✓ Published1🌍 Public
This example displays a horizontal bar chart of the female population as a percentage of the total, using 2018 World Bank data for ten countries. The chart customizes both axes by removing their domain lines, formatting the x-axis ticks as percentages, and adding axis labels. It uses D3 v5’s `scaleBand` for the categorical y-axis, `scaleLinear` for the numeric x-axis, and `axisBottom` and `axisLeft` to render the ticks and grid lines.
AI-generated descriptionThis bar chart shows the female Population (% of total). The data comes from the year 2018. World Bank staff estimates based on age/sex distributions of United Nations Population Division's World Population Prospects
MIT Licensed