Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Customizing Axes

Public visualization

Viewing a saved revision (read-only)

c89990e370c846b8a47394f3264ed471

Customizing Axes

0 stars1🌍 Public
MMarrnj2
Last edited May 18, 2020
Created on May 17, 2020

This example displays a horizontal bar chart of the ten most populous countries, with population values scaled to thousands. The visualization customizes both axes by removing default domain lines and tick marks, leaving only text labels for clarity. The chart is built with D3 v5, using scaleBand for the categorical country axis, scaleLinear for the population axis, and the axisBottom and axisLeft functions for rendering. Data is loaded from a CSV file and styled with CSS.

AI-generated description