Skip to main content
100%

Dataviz 1 - Face (React + D3)

✓ Published3🌍 Public
RRyAlpha
Last edited Nov 18, 2021
Created on Nov 18, 2021

This example uses React and D3.js v7 to render a simple, static smiley face as an SVG graphic. It shows a yellow circle for the head, two black circles for eyes, and a curved arc for a mouth, all positioned relative to a central coordinate system. The React component defines the SVG elements with numeric values for dimensions, offsets, and radii. The mouth shape is generated using D3's `d3.arc()` function to create a path with specified inner and outer radii and angular range, and the component is mounted to the DOM using `ReactDOM.render()`.

AI-generated description

A bare minimum HTML page.

MIT Licensed

Similar vizzes