Skip to main content
100%

BARCHART BABY

✓ Published1🌍 Public
EEvan Chang
Last edited Feb 19, 2020
Created on Feb 19, 2020

A horizontal bar chart ranks the ten most populous countries by estimated 2018 population, using d3.csv to load the data and d3.scaleLinear and d3.scaleBand to map population and country names to bar widths and vertical positions. The bars are SVG rects with a steelblue fill, axes are generated with d3.axisBottom and d3.axisLeft, and the chart is rendered inside a 960-by-500 SVG element with margins.

AI-generated description
MIT Licensed

Similar vizzes