Skip to main content
100%

SVG Shapes

✓ Published0🌍 Public
YYogesh Joshi
Last edited Jul 19, 2019
Created on Jul 19, 2019
Forked from Hello VizHub

This example demonstrates fundamental SVG shape elements—circle, rect, and line—positioned within a fixed 960 by 960 coordinate system. The visualization compares shapes with default styling against those customized with explicit `fill` and `stroke` attributes, while a `<g>` group applies shared `fill="teal"` and `stroke="black"` to its children. Beyond these static SVG primitives, the code also showcases basic D3 integration by importing `select` from `d3` and using it to set the text content of a div element, along with a separate ES6 module export. The rendering relies entirely on SVG markup.

AI-generated description

An example showing the capabilities of VizHub.

MIT Licensed

Similar vizzes