🌍 Public
Viewing a saved revision (read-only)
61a48efd0c4244d2aea95f3df9b36d2a
Shapes with svg
This example uses D3.js to draw a yellow circle with a black stroke on an SVG canvas, representing a face with a single black eye. The code appends SVG circle elements using D3 selections, setting attributes like radius, center coordinates, and fill colors directly. The circle’s size and position are derived from the SVG’s width and height attributes, while the eye is positioned relative to those dimensions. The visualization demonstrates basic SVG shape creation and attribute manipulation through D3’s `select` and `append` methods.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.