Skip to main content
100%

Data Visualization with D3, JavaScript, React - Smile Face

✓ Published0🌍 Public
MM Abdul Rokhim
Last edited Oct 8, 2022
Created on Oct 8, 2022
Forked from HTML Starter

This example shows a smiley face rendered as a static SVG composition, combining a yellow head, two eyes, and a mouth line. The visualization is built with React 18 and ReactDOM, which manage the page’s root element, while the drawing itself is defined directly in SVG markup using basic shapes like circles and a line. The code sets explicit pixel positions for each element, with a filled circle for the face, smaller circles for eyes, and a styled line for the smile, all within a 960 by 500 viewport. The bundled JavaScript outputs a simple “Hello React! Semua” message, but the primary visual remains the hand-coded SVG illustration rather than data-driven graphics.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes