Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

d3 practice

Public visualization

d3 practice

0 stars0🌍 Public
Nnutmegsashimi
Last edited Feb 1, 2021
Created on Feb 1, 2021
Forked from HTML Starter

This example shows four numbered paragraphs rendered in a single empty `div` element, displaying the static values 1 through 4. The visualization uses the D3.js v6 library to select the container, bind the array of numbers to paragraph elements via the `.data()` method, and append a new `<p>` for each item using `.enter()`. The text for each paragraph is set directly from the data value through the `.text()` callback, with no additional encoding or interaction. The HTML file loads D3 from a CDN and the JavaScript code from a separate `app.js` file.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed