Skip to main content
100%

1/31/17 class 2

✓ Published0🌍 Public
KKunnyKou
Last edited Jan 31, 2017
Created on Jan 31, 2017

This example displays a hardcoded array of four values—three numbers and the string "hi"—as paragraphs on a blank page. Using D3 v4, the script selects the body element, binds the data with the `data()` operator, and appends a `<p>` element for each entry via the `enter()` selection. The text content of each paragraph is set through `.text()`, which receives the current datum value. It is a minimal demonstration of the data join pattern and DOM manipulation with D3, based on a Blockbuilder starter template.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes