Skip to main content
100%

Making a Bar Chart

✓ Published3🌍 Public
DDaniel Rivera
Last edited Apr 21, 2020
Created on Apr 17, 2020

This bar chart displays the populations of ten countries, with horizontal bars sorted by descending population. The visualization uses D3 v5’s `scaleLinear` for the x-axis and `scaleBand` for the y-axis, rendering as SVG. Population data from `data.csv` is loaded via D3’s `csv` parser, with values multiplied by 1,000. Axes are added using `axisLeft` and `axisBottom`, and bars are appended as `rect` elements with a steelblue fill.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes