🌍 Public
Viewing a saved revision (read-only)
43d37b6d1edd44d9985cada9ce5d1c96
Customizing Axes
This example displays a horizontal bar chart of population figures for prefectures in East Japan, with each bar’s length proportional to the population value. It customizes both axes: the y-axis removes its line and tick marks for a cleaner look, while the x-axis uses `d3.axisBottom` with a `.2s` tick formatter (e.g., “13.7M”) and spans the full chart height via negative tick sizes. The chart is rendered with D3 v5, loading data from a CSV, and uses `scaleLinear` and `scaleBand` for positioning.
AI-generated description