Module

DataViz.Layout.Sankey.Path

Package
purescript-hylograph-layout
Repository
afcondon/purescript-hylograph-layout

DataViz.Layout.Sankey.Path

SVG path generation for Sankey link curves. Generates the characteristic curved ribbons for flow visualization.

#findNode Source

findNode :: Array SankeyNode -> NodeID -> Maybe SankeyNode

Helper to find node by ID

#generateLinkPath Source

generateLinkPath :: Array SankeyNode -> SankeyLink -> String

Generate SVG path data for a Sankey link Creates a cubic bezier curve ribbon from source to target This draws a filled area (not just a stroke) by creating a closed path

#generateStraightPath Source

generateStraightPath :: Array SankeyNode -> SankeyLink -> String

Alternative: Generate horizontal link path (straight lines) Useful for debugging or different visual styles