🌍 Public
Viewing a saved revision (read-only)
669ebc0fd82d41f9a42e756307b13bf5
HTML Starter
This example shows a static sine wave path plotted on an SVG canvas, with a minimal setup for animating it over time. The code generates coordinate arrays using a loop and maps them to pixel positions, then renders the line with `d3.line()`. It uses D3 v5 and React, with SVG rendering and transitions prepared via `transition().attr()`. The HTML page loads D3 from a CDN and relies on a separate `bundle.js` for the visualization logic.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.