Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Customizing Axes

Public visualization

Viewing a saved revision (read-only)

12c9de8eef824914bef192aaa8bd14f2

Customizing Axes

0 stars1🌍 Public
UUsbaldoFraire
Last edited May 7, 2019
Created on May 7, 2019
Forked from Customizing Axes

This example shows a horizontal bar chart of the ten best places to visit in the U.S., with each bar’s length representing population data sourced from a CSV file. The visualization highlights custom axis styling: the y-axis is stripped of its domain line and tick marks, while the x-axis uses formatted tick labels and a custom title. Built with D3 v5, it uses `scaleBand` and `scaleLinear` for positioning, `axisBottom` with `tickFormat` for the x-axis, and SVG rendering with explicit margin transforms for layout.

AI-generated description

Based on information from https://www.planetware.com/usa/best-places-to-visit-in-the-united-states-us-ny-21.htm and https://www.distance-cities.com/.

See also the first bar chart visualization that this one builds on: Making a Bar Chart.