Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
LLukas Schießer
Last edited Mar 14, 2020
Created on Mar 14, 2020
Forked from Making a Bar Chart

This example shows a horizontal bar chart of the top 10 most populous countries, with customized axes. The y-axis displays country names using d3.axisLeft, while the x-axis uses d3.axisBottom with a tick formatter that converts values to abbreviations like "1.42B" and draws grid lines via tickSize. The code removes default axis domains and tick lines, and adds axis labels and a title with custom text styling. Data is loaded from a CSV file using d3.csv, with population values multiplied by 1000.

AI-generated description
MIT Licensed

Similar vizzes