Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Hello Html

Public visualization

Fork of Hello Html

0 stars0🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed