Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
KKelvin Yuen
Last edited Sep 20, 2019
Created on Sep 3, 2019
Forked from Create a bar chart

This horizontal bar chart displays the population of the top 10 most populous countries, with countries listed along the y-axis and population values on the x-axis. The chart uses D3 v5 scales, including `scaleLinear` for the x-axis and `scaleBand` for the y-axis, with custom axes created via `axisBottom` and `axisLeft`. The x-axis tick labels are formatted using `format('.3s')` to abbreviate large numbers like billions, while grid lines extend across the plot. Country data comes from a CSV file, and the SVG rendering showcases customized axis labels and styling.

AI-generated description
MIT Licensed

Similar vizzes