🌍 Public
Viewing a saved revision (read-only)
cf96440363c344a6bd36ad913d1a586e
Going deep into 'axes'
This horizontal bar chart displays the population of the top 10 most populous countries, using data from a CSV file. The visualization demonstrates customizing D3 axes, including removing domain lines, adding tick marks that extend across the chart, and formatting tick labels with the `format` API to abbreviate values. The chart uses `d3.scaleLinear`, `d3.scaleBand`, `axisLeft`, and `axisBottom` to construct the layout, with an SVG rendering and custom styling for the title, axis labels, and rectangular bars.
AI-generated descriptionA demonstration of how to start using D3 version 6.