Skip to main content
100%

Customizing Axis

✓ Published1🌍 Public
NNikki-gea
Last edited Aug 29, 2020
Created on Aug 25, 2020
Forked from Making a Bar Chart

A horizontal bar chart displays population data for seven countries, ranked by size, with a customized axis. The visualization uses D3 v5's `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft` to render SVG bars. Tick labels are formatted using `format('.3s')` to abbreviate numbers, replacing 'G' with 'B' for billions. Population axis tick lines extend across the chart, while the y-axis domain and tick lines are removed, and custom labels and a title are added.

AI-generated description
MIT Licensed

Similar vizzes