Skip to main content
100%

Bar Chart with Beautified Axes

✓ Published0🌍 Public
MMohtasim Tamjeed
Last edited Sep 28, 2018
Created on Sep 22, 2018
Forked from Basic Bar Chart

This example shows a horizontal bar chart of population figures for the ten most populous countries, sorted by value with a linear x-axis and banded y-axis. The code uses D3 v5’s `csv` loader to parse the data, `scaleLinear` and `scaleBand` for positioning, and `axisLeft`/`axisBottom` for tick marks. Axis labels are formatted with `format(".2s")` to abbreviate large numbers, and the SVG is rendered directly with appended `rect` elements.

AI-generated description
MIT Licensed

Similar vizzes