🌍 Public
Viewing a saved revision (read-only)
1762d504cfb04be7a17e634ddb8e79f1
Face with D3 js
This example renders a red 500-by-500 SVG square with a black outlined face drawn using D3.js. The code selects the SVG element with `d3.select` and applies the background color, while CSS classes style the face’s paths and lines with a thick red stroke. The face is constructed from SVG path elements inside the HTML, with no external data source. It demonstrates basic D3 v5 selection and styling within a React-compatible HTML page.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.