steppedPath
Chart
stable
Generate a staircase SVG path string through an array of [x, y] points. Each step moves horizontally to the next x then vertically to the next y, producing the discrete-state "event log" look.
API
Signature
Signature TypeScript complète, extraite du fichier util.
API
Paramètres
Paramètres d'entrée acceptés par cet util.
- pointsrequisArray<TPathPoint>
- Ordered array of [x, y] tuples. Returns an empty string when the array is empty.
API
Valeur de retour
La valeur retournée par cet util.
- An SVG path data string using M and L commands that forms a horizontal-then-vertical staircase.
Usage
Exemples
Extraits de code prêts à coller.
Draw a stepped chart line