Skip to main content
100%

Javascript inside html

✓ Published1🌍 Public
NNita
Last edited Feb 21, 2020
Created on Feb 21, 2020

This example displays three rows of circles, each row rendered in a separate SVG, with positions determined by an array of numbers and randomized vertical coordinates. Using React, the component maps over a fixed array to generate circle elements with either magenta or cyan fills. The visualization leverages React’s declarative rendering and SVG’s native circle shape, with the JavaScript logic computing horizontal placement based on array indices and vertical placement via `Math.random()`. The result is a playful, generated pattern showing how simple data can drive SVG output.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes