Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
Hhamza.miftah@gmail.com
Last edited Jul 13, 2022
Created on Jul 12, 2022
Forked from Making a Bar Chart

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 description

This bar chart shows population of the top 10 most populous countries the data comes from the year 2018

MIT Licensed

Similar vizzes