SankeyDiagram.highlightLinks Method
Applies the highlight CSS class to each link path for which
linkPredicate returns true, and optionally to source and target node
rect elements. Used in standard (non-explore) mode.
Parameters
- linkPredicate
-
Type: Function
A function called with the link datum; return true to highlight the link path.
- sourceNodePredicate
-
Type: Function
(optional) A function called with the source node datum; return true to highlight it.
Optional: True
- targetNodePredicate
-
Type: Function
(optional) A function called with the target node datum; return true to highlight it.
Optional: True