🌍 Public
Viewing a saved revision (read-only)
5955053e19a8499e93694c2b7e8effdc
D3.js Intro: Make a face!
This example demonstrates the fundamental D3.js workflow by rendering a simple face from a circle on an SVG canvas. The code explicitly sets the circle’s radius, horizontal center, and vertical center using the SVG’s width and height attributes, positioning it centrally. It imports the `select` function from the d3 module to attach the shape, and also imports a local ES6 module to display a greeting message in a separate div. The SVG is styled with a dark background and large Ubuntu font via CSS, with a fixed 960 by 500 pixel viewport.
AI-generated description