sankey_helpers
library
Functions
-
buildInteractiveSankeyPainter({required List<SankeyNode> nodes, required List<SankeyLink> links, required Map<String, Color> nodeColors, int? selectedNodeId, bool showLabels = true})
→ InteractiveSankeyPainter
-
Builds an interactive painter based on the provided nodes, links, and node colors
-
detectTappedNode(List<SankeyNode> nodes, Offset tapPos)
→ int?
-
Determines if a tap hit a node and returns its
id
; returns null if no node is hit
-
generateDefaultNodeColorMap(List<SankeyNode> nodes)
→ Map<String, Color>
-
Generates a default node color map for a list of SankeyNode objects
-
generateSankeyLayout({double width = 1000, double height = 600, double nodeWidth = 20, double nodePadding = 15})
→ Sankey
-
Generates a configured Sankey layout engine