Skip to main content
100%

Let's make a face with D3

✓ Published0🌍 Public
Mmgl12432
Last edited Aug 30, 2020
Created on Aug 30, 2020

A small web page demonstrates D3.js data binding by attaching an array of five numbers to a collection of empty paragraph elements. The code uses `d3.selectAll('p')` to select all paragraphs, chains the `.data()` method with the array, and applies `.text()` to output each value into its corresponding paragraph. The example also logs both the data and its index to the browser console, showing the iterative binding process. The HTML structure includes a series of empty `<p>` tags and loads D3 version 6 from a CDN.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes