Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Let's make a face with D3.js!

Public visualization

Let's make a face with D3.js!

0 stars0🌍 Public
Lliuleirain
Last edited Nov 23, 2020
Created on Nov 21, 2020

This example builds a simple bar chart from a CSV of country populations, rendering each row as a 300-by-300 pixel SVG rectangle. The code uses D3’s `select` and `csv` modules, parsing the population column and multiplying it by 1000 before appending the rectangles to the SVG element. The chart demonstrates basic D3 v6 data loading, attribute setting, and SVG rendering without axes or labels.

AI-generated description

An example including some commonly used features of SVG.

Comments

Sign in to join the discussion.

MIT Licensed