Skip to main content
100%

Fork of Hello Html

✓ Published0🌍 Public
AArunSalamander
Last edited May 1, 2021
Created on May 1, 2021
Forked from Hello Html

This example renders a smiley face in SVG using React and D3. It draws a yellow circle for the head with a black stroke, two eye circles, and a mouth path created with D3’s `arc` function, which is chained to set inner and outer radii and start and end angles. The app imports `React`, `ReactDOM`, and `arc` from `d3`, and uses a React component to produce the SVG markup, which is then mounted into the DOM via `ReactDOM.render`.

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