Skip to main content
100%

D3Path

✓ Published1🌍 Public
Vvivianaaai@qq.com
Last edited Nov 7, 2023
Created on Nov 7, 2023
Forked from D3 Curve Explorer

D3Path demonstrates two fundamental D3.js geometry primitives rendered as SVG paths. The left side plots a polyline through four explicit data points using `d3.line()`, with commented-out curve options (`d3.curveCardinal`, `d3.curveBasis`, etc.) illustrating alternative interpolation strategies. The right side draws three concentric arc segments using `d3.arc()` with varying radii (`innerRadius`, `outerRadius`), angles, and padding (`padAngle`) to produce multi-colored pie-like wedges. The example uses hardcoded JavaScript arrays for data and D3 v6 directly from the unpkg CDN, with an SVG canvas sized 1600x800, showcasing basic path construction without external styling.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes