Skip to main content
100%

D3.js Basic Shapes

✓ Published0🌍 Public
AAshwathSalimath
Last edited Feb 17, 2018
Created on Feb 16, 2018

This example demonstrates fundamental SVG shape creation and geometric transformations using D3.js v4. It draws circles, lines, and rectangles with various colors and stroke widths, then shows how to apply translation, scaling, and rotation operations to these shapes. The code appends SVG elements directly to the body and uses D3's selection methods to set attributes like `cx`, `cy`, `r`, and `transform`, and includes text labels to annotate each operation.

AI-generated description

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/anonymous/'>anonymous</a>'s block: <a href='http://bl.ocks.org/anonymous/e19eecca526f9301dc057d23aa6f915d'>fresh block</a>

mit Licensed

Similar vizzes