Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Shapes with SVG and CSS

Public visualization

Shapes with SVG and CSS

0 stars0🌍 Public
KKilho Kim
Last edited Nov 8, 2019
Created on Nov 8, 2019

This example demonstrates how to combine SVG primitives with CSS styling to create a variety of shapes, including circles, rectangles, lines, and paths, within a fixed 960x500 viewport. The SVG elements are grouped and transformed using attributes like `scale` and `translate` to position and organize the shapes. CSS classes, such as `.lines`, apply stroke properties to the line and path elements. The code uses plain SVG markup and a small D3.js `select` import to set a dynamic message, while the rendering is handled entirely through the SVG DOM.

AI-generated description

An example showing the capabilities of VizHub.

Comments

Sign in to join the discussion.

MIT Licensed