Skip to main content
100%

My first d3js tutorial

✓ Published0🌍 Public
PPRASANTH
Last edited Feb 19, 2020
Created on Feb 19, 2020
Forked from React Starter

This example renders a simple cartoon face using D3.js version 5 in a React application. It draws a yellow circle as the head, two colored eyes with black strokes, and an arc-based mouth. The code uses `d3.select` to access the SVG element, `d3.arc` to generate the mouth path, and SVG attributes like `cx`, `cy`, and `r` for positioning shapes. All coordinates and sizes derive from fixed constants rather than data.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes