Skip to main content
100%

Let's make a face with D3.js!

✓ Published1🌍 Public
LLonwabo11
Last edited May 6, 2019
Created on May 6, 2019

This example displays a horizontal bar chart of country populations, using D3.js v5 APIs such as `select`, `csv`, `scaleLinear`, `scaleBand`, and `max`. The SVG canvas is 960 by 500 pixels, and bars are appended as `rect` elements with heights set by bandwidth and widths scaled to population values loaded from a local `data.csv` file. The chart sorts countries along the y-axis alphabetically, with populations multiplied by 1000 to reflect actual figures.

AI-generated description

Trying bar graph on my own

MIT Licensed

Similar vizzes