Skip to main content
100%

First test with D3.js

✓ Published0🌍 Public
KKams2015
Last edited Jul 6, 2020
Created on Jul 6, 2020

This example draws a simple cartoon face and body on an SVG canvas using D3.js v5 within a React framework. The code creates circles, rectangles, and an arc path to form the character’s head, nose, eyes, mouth, and torso, applying a sky-blue background and blue strokes. It also generates 50 randomly placed white circles to simulate background particles. The implementation uses direct SVG element manipulation via D3’s selection and append methods, along with a `d3.arc` generator for the mouth shape.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes