Skip to main content
100%

Customizing Axis

✓ Published1🌍 Public
Lloisasy
Last edited Jan 22, 2020
Created on Jan 21, 2020
Forked from Making a bar chart

This example customizes the axes of a horizontal bar chart showing the top 10 most populous countries, using D3 v5 with an SVG rendering. It loads population data from a CSV file and scales the values with `d3.scaleLinear` for the x-axis and `d3.scaleBand` for the categorical y-axis. The code formats tick labels with `d3.format`, removes axis domain lines, and adds custom labels and a title via `axisBottom`, `axisLeft`, and SVG text elements.

AI-generated description
MIT Licensed

Similar vizzes