Fork of HTML Starter
✓ Published0🌍 Public
This example demonstrates a simple interactive webpage that uses D3.js to manipulate HTML elements and render an SVG graphic. It shows a static red circle with a blue fill and black stroke inside an SVG, alongside paragraphs that become blue after D3 selects them. The code uses `d3.selectAll` and `d3.select` to target elements, and the data-join pattern with `.data()` and `.enter().append()` to dynamically add new paragraphs listing numbers 4, 8, 15, 16, 23, and 42. The page relies on D3 v6 loaded via a CDN, with CSS controlling basic text alignment and font size.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed