SankeyGraph<N, L, D> class

Directed acyclic graph with Sankey diagram related data.

Inheritance

Constructors

SankeyGraph({required String id, required List<N> nodes, required List<L> links, required TypedAccessorFn<N, D> nodeDomainFn, required TypedAccessorFn<L, D> linkDomainFn, required TypedAccessorFn<L, N> sourceFn, required TypedAccessorFn<L, N> targetFn, required TypedAccessorFn<N, num?> nodeMeasureFn, required TypedAccessorFn<L, num?> linkMeasureFn, TypedAccessorFn<N, Color>? nodeColorFn, TypedAccessorFn<N, Color>? nodeFillColorFn, TypedAccessorFn<N, FillPatternType>? nodeFillPatternFn, TypedAccessorFn<N, num>? nodeStrokeWidthPxFn, TypedAccessorFn<L, Color>? linkFillColorFn, TypedAccessorFn<L, num>? secondaryLinkMeasureFn})
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
Unique identifier for this graph
finalinherited
linkAttributes → LinkAttributes
Store additional key-value pairs for link attributes
finalinherited
linkDomainFn TypedAccessorFn<Link<N, L>, D>
Accessor function that returns the domain for a link.
finalinherited
linkFillColorFn TypedAccessorFn<Link<N, L>, Color>?
Accessor function that returns the fill color of a node
finalinherited
linkMeasureFn TypedAccessorFn<Link<N, L>, num?>
Accessor function that returns the measure for a link.
finalinherited
All links in the graph.
final
nodeAttributes → NodeAttributes
Store additional key-value pairs for node attributes
finalinherited
nodeColorFn TypedAccessorFn<Node<N, L>, Color>?
Accessor function that returns the stroke color of a node
finalinherited
nodeDomainFn TypedAccessorFn<Node<N, L>, D>
Accessor function that returns the domain for a node.
finalinherited
nodeFillColorFn TypedAccessorFn<Node<N, L>, Color>?
Accessor function that returns the fill color of a node
finalinherited
nodeFillPatternFn TypedAccessorFn<Node<N, L>, FillPatternType>?
Accessor function that returns the fill pattern of a node
finalinherited
nodeMeasureFn TypedAccessorFn<Node<N, L>, num?>
Accessor function that returns the measure for a node.
finalinherited
nodes List<SankeyNode<N, L>>
All nodes in the graph.
final
nodeStrokeWidthPxFn TypedAccessorFn<Node<N, L>, num>?
Accessor function that returns the stroke width of a node
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getLinkAttribute<R>(AttributeKey<R> key) → R?
Get attribute of given generic type R for a link series
inherited
getNodeAttribute<R>(AttributeKey<R> key) → R?
Get attribute of given generic type R for a node series
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setLinkAttribute<R>(AttributeKey<R> key, R value) → void
Set attribute of given generic type R for a link series
inherited
setNodeAttribute<R>(AttributeKey<R> key, R value) → void
Set attribute of given generic type R for a node series
inherited
toSeriesList() List<Series<GraphElement, D>>
Transform graph data given by links and nodes into a Series list.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited