Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

D3 Shapes

Public visualization

Viewing a saved revision (read-only)

938ca640e29644f99fb2a4f9f92c6f6b

D3 Shapes

0 stars1🌍 Public
SSubhendu Karmakar
Last edited Dec 29, 2023
Created on Dec 29, 2023

This example displays the seven built-in D3 symbol types (circle, cross, diamond, square, star, triangle, and wye) rendered as stroked SVG paths along a horizontal scale. It uses `d3.symbol()` with a `d3.scaleLinear()` to position each shape, and applies each symbol generator via `d3[d]` lookups. Labels below each path show the corresponding API name. The data is a static array of symbol type strings, with the visualization rendered entirely in SVG.

AI-generated description

D3 Scales - scaleTime()