Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Lets make a face with D3.js

Public visualization

Viewing a saved revision (read-only)

16d593448e364410b991e98a9f9c6f2a

Lets make a face with D3.js

0 stars0🌍 Public
BBoris97929500
Last edited Oct 22, 2020
Created on Oct 22, 2020

This example displays a bar chart of the world’s most populous countries, using the population data from `data.csv`. The visualization renders a single large rectangle for each country, with the rectangle’s width and height fixed at 300 pixels. The code loads the CSV with `d3.csv`, converts the population values to numbers, and appends SVG `rect` elements using `select('svg')` and `selectAll('rect').data(data).enter().append`.

AI-generated description