Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
HHan Jinseok
Last edited Mar 10, 2021
Created on Mar 10, 2021
Forked from Making a Bar Chart

A horizontal bar chart displays population data for 27 countries, with bars extending from a linear scale and country names on a band scale. The example demonstrates customizing axes by applying D3’s `axisLeft` and `axisBottom` within a margin-based layout, using `scaleLinear` and `scaleBand` from D3 v6. Data is loaded from a CSV file via `d3.csv`, with population values multiplied by 1000. The SVG rendering uses steelblue rectangles, with axis text styled via CSS at 1.4em.

AI-generated description
MIT Licensed

Similar vizzes