Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Customizing Axes

Public visualization

Customizing Axes

0 stars1🌍 Public
Aaurelio-david
Last edited Jun 27, 2020
Created on Jun 26, 2020
Forked from Making a Bar Chart

This example displays a bar chart of the top 10 most populous countries using data from a CSV file, with population values in thousands rendered as circles on a linear scale. The code customizes both axes by removing default domain lines, adding truncated tick labels formatted with d3.format (e.g., changing G to B for billions), and extending tick lines across the chart via tickSize. It uses d3.csv, scaleLinear, scalePoint, axisLeft, and axisBottom in D3 v5, with an SVG rendered scatter-style layout.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed