Skip to main content
100%

Customizing Axis

✓ Published1🌍 Public
AAlex Reitz
Last edited Mar 26, 2020
Created on Mar 26, 2020
Forked from Making a bar chart

This bar chart displays the populations of the top 10 most populous countries using a horizontal layout, with country names on the y-axis and population totals on the x-axis. The chart uses d3.csv to load data from a local CSV file and renders with SVG. The code customizes the axes through d3.axisLeft and d3.axisBottom, applying a custom tick format that converts values from G to B, and removes gridline domains. A title and axis label are added as SVG text elements.

AI-generated description
MIT Licensed

Similar vizzes