Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Manipulating DOM

Public visualization

Viewing a saved revision (read-only)

a0fbb736153543269b2f31f17a812867

Manipulating DOM

0 stars2🌍 Public
SSreenivasulu
Last edited Sep 13, 2020
Created on Aug 23, 2020
Forked from HTML Starter

This example demonstrates how D3.js can dynamically manipulate HTML elements in the DOM. Using d3.select, the code changes text colors, background colors, and list attributes when the "Change!" button is clicked, and resets them with the "Reset!" button. The page includes a heading, paragraphs, and ordered/unordered lists styled via CSS, showing D3's ability to modify existing web content beyond SVG visualization.

AI-generated description

A bare minimum HTML page.

See also React Starter.