Skip to main content
100%

fresh block

✓ Published0🌍 Public
Aantichaos
Last edited Feb 8, 2018
Created on Feb 8, 2018

A simple SVG scene displays a red circle, a rounded rectangle, and a diagonal line positioned on a fixed 960×500 canvas. The circle sits at the center-left, the rectangle occupies the upper-left area, and the line connects the circle’s center to the lower-right corner. Using D3 v4, the code selects the body element, appends an SVG container, and then creates each shape via `svg.append`, setting attributes like `cx`, `cy`, `r`, `x`, `y`, `width`, `height`, and `x1`/`y1`/`x2`/`y2` directly. No data binding or interactions occur; the visualization is purely static.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes