Skip to main content
100%

customizing axis

✓ Published1🌍 Public
Llarsboergo
Last edited Feb 10, 2021
Created on Feb 10, 2021
Forked from Making a Bar Chart

This example shows a horizontal bar chart of the world’s top 10 most populous countries, using population data from a CSV file. The chart customizes its axes by removing default domains and tick lines, applying a tick format that abbreviates large numbers (e.g., converting billions to “B”), and adding a styled axis label. Built with D3 v6, it uses `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to render the SVG, with a custom `tickFormat` for the x-axis.

AI-generated description
MIT Licensed

Similar vizzes