Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
LLonwabo11
Last edited May 3, 2019
Created on May 3, 2019
Forked from Making a bar chart

A horizontal bar chart displays population counts for ten countries, with countries listed along the y-axis and population values along the x-axis. The visualization uses D3 v5's `scaleLinear` for the population axis and `scaleBand` for the categorical country axis, with axes rendered via `axisLeft` and `axisBottom`. Data is loaded from a CSV file using `csv`, with population values multiplied by 1000 before rendering. The chart is drawn as blue SVG rectangles, positioned using the band scale's bandwidth and the linear scale's width mapping.

AI-generated description
MIT Licensed

Similar vizzes