D3 Workshop: Part 1 - Basic HTML, d3, and Data Binding
This interactive D3 workshop demonstrates the basics of data binding and DOM manipulation in a live sandbox. It shows how a button click triggers JavaScript to modify existing paragraph elements—changing their text and font size—while also appending new paragraphs from a hardcoded array. The code uses D3 v4’s `selectAll`, `data`, and `enter` methods to bind the array `myData` to new `<p>` elements, then adds click interactivity via `on`, which changes the clicked paragraph’s text and color. The example also includes an HTML checkbox exercise list, though only the button-driven D3 logic is functional.
AI-generated descriptionBuilt with blockbuilder.org
forked from <a href='http://bl.ocks.org/ideaOwl/'>ideaOwl</a>'s block: <a href='http://bl.ocks.org/ideaOwl/c9cfb578976a88a140fadd030e4f486e'>D3 Workshop: Part 1 - Basic HTML, d3, and Data Binding</a>