Skip to main content
100%

Face with D3 js

✓ Published0🌍 Public
EEric
Last edited Dec 24, 2019
Created on Dec 24, 2019
Forked from 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 description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes