Skip to main content
100%

d3-face

✓ Published0🌍 Public
Ggoodlana
Last edited Aug 19, 2021
Created on Aug 18, 2021
Forked from Hello VizHub

This example renders a simple, static face using React and SVG, with a yellow circular head and two black eyes. The drawing is created declaratively through JSX, using React’s `ReactDOM.render` to insert the SVG directly into the page. While the code imports D3 via UNPKG and demonstrates local ES6 module usage, the visualization itself does not call any D3 functions or rely on data; it only sets fixed numeric constants for coordinates, radii, and stroke widths. The result is a minimal, code-driven illustration of SVG shape composition within a React component.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes