Skip to main content
100%

D3 Example 3

✓ Published0🌍 Public
OOleJRask
Last edited Aug 26, 2021
Created on Aug 26, 2021
Forked from D3 Example 1

Two interactive D3 examples demonstrate HTML list construction and selection. The first version displays the phrases “From East,” “to West,” “at Home,” and “is Best” as clickable list items; each click toggles the text color between red and blue using a 500-millisecond transition applied via D3’s `transition()` method. The second, simpler version uses `d3.select`, `append`, `selectAll`, and `data().enter()` to build the same static list without interactivity. Both rely on D3 v7, initiated through the `body` element’s onload event.

AI-generated description
MIT Licensed

Similar vizzes