Skip to main content
100%

xy co-ordinates

✓ Published0🌍 Public
NNita
Last edited Feb 19, 2020
Created on Feb 19, 2020
Forked from xy co-ordinates

This example shows a static arrangement of SVG shapes, including red rectangles and circles, positioned at fixed coordinates on a gray background. It demonstrates how React components render SVG elements using the `MyRect` custom component, which returns a `<rect>` element with position, size, fill, and opacity props. The visualization uses React 16 and D3 v5, with circles drawn directly inside an SVG container at varying x-coordinates based on an array mapping. The code defines the canvas dimensions and centers, but the displayed geometry remains fixed rather than interactive or data-driven.

AI-generated description

Smiley Face Part I (with React)

MIT Licensed

Similar vizzes