sankey_helpers library

Classes

SankeyDataSet
Combines nodes and links with layout logic
SankeyDiagramWidget
A widget that wraps an interactive Sankey diagram
SankeyNodeThemeManager
Utility class for managing node theming

Constants

defaultNodeColors → const List<Color>
A default palette of 15 visually distinct colors for use in node theming

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