🌍 Public
Viewing a saved revision (read-only)
b53c02868200452085485decbc25e9ec
Customizing Axes
This example displays a bar chart of the top 10 most populous countries in 2018, with population values on the x-axis and country names on the y-axis. The chart uses D3 v5 APIs including `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft` to position bars and customize tick marks, removing default domain lines and applying a custom tick formatter that converts values to billions. Grid lines extend across the plot area, and labels for the title and axes are added with SVG text elements.
AI-generated descriptionThis bar chart shows population of the top 10 most populous countries the data comes from the year 2018