🌍 Public
Viewing a saved revision (read-only)
8f069b45336442469e097f68daf46bbe
Face with D3 js
This example renders a red square as an SVG face, using a static `d3.select` call to target the top-level `<svg>` element and apply the background color. The SVG canvas is 500 by 500 pixels, with a CSS class defining black lines of width 5, though no paths are drawn. The code loads D3 v5 from the unpkg CDN and demonstrates a minimal setup for styling an SVG container, with the red background set via D3's selection style method.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.