Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
IIsmael Nóbrega
Last edited Apr 27, 2020
Created on Apr 27, 2020
Forked from Customizing Axes

A bar chart ranks the top ten most populous countries using data from a CSV file, with population values formatted in abbreviated units. The chart uses D3 v5’s `scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis, rendered as SVG rectangles. Axes are customized with `axisLeft` and `axisBottom`, removing default domain lines and extending tick lines across the plot. Tick labels apply a custom formatter via `format`, while the chart’s title and axis label are added as SVG text elements.

AI-generated description
MIT Licensed

Similar vizzes