Shapes
Line, area, and arc path generators plus layout algorithms for data visualization. These functions produce SVG path strings and compute geometric layouts for charts.
Line and area generators
- linePath — Generate an SVG path for a line through points with curve interpolation.
- areaPath — Generate a closed area path from a line down to a baseline.
- areaPathStacked — Generate a closed area path between two lines for stacked area charts.
Arc generators
- arcPath — Generate an arc or annular sector SVG path for pie slices and donut segments.
- arcPathRounded — Generate an arc with natively rounded corners.
Layout algorithms
- pieLayout — Compute pie slice angles from an array of values.
- stackLayout — Compute stacked baselines from multiple data series.
- sankeyLayout — Compute a full Sankey diagram layout with positioned nodes and links.