Skip to main content
100%

Customizing Axis

✓ Published3🌍 Public
Xxsg13
Last edited Nov 28, 2020
Created on Nov 28, 2020
Forked from Making a Bar Chart

This example displays a horizontal bar chart of the world’s most populous countries, with China leading and the United Kingdom at the bottom. The code uses D3 v6 with SVG rendering, reading population data from a CSV file. It customizes both axes by removing domain lines and tick marks, applying a tick format that converts large numbers to abbreviations like “1.44B”, and adding an axis label. The bars are colored steelblue, with a title and sans-serif text styling from the included stylesheet.

AI-generated description
MIT Licensed

Similar vizzes