ChordMark<T> Class

Draws a chord diagram of the flows between nodes, with a row per flow: the nodes are arcs around a circle, as long as the total of the flows that leave them, and each pair of nodes is joined by a ribbon whose ends are as wide as the flows from each node to the other. The nodes take the colors of the palette of the theme, and a ribbon takes the color of the node of its larger flow, unless the Mark<T>.Fill channel colors the ribbons.

public sealed class ChordMark<T> : Mark<T>

Type parameters

T
The type of the rows: the flows.

Remarks

The rows that have the same source and target add up. Missing and negative values count as zero.

Inheritance
Mark<T> ChordMark<T>

Constructors

NameDescription
ChordMark(IEnumerable<T>, Func<T, object?>, Func<T, object?>, Func<T, object?>)Initializes a new instance of the ChordMark<T> class.

ChordMark(IEnumerable<T>, Func<T, object?>, Func<T, object?>, Func<T, object?>)

ChordMark.cs

Initializes a new instance of the ChordMark<T> class.

public ChordMark(IEnumerable<T> data, Func<T, object?> source, Func<T, object?> target, Func<T, object?> value)

Parameters

data IEnumerable<T>
The rows: the flows.
source Func<T, object?>
The channel of the name of the node the flow leaves.
target Func<T, object?>
The channel of the name of the node the flow reaches.
value Func<T, object?>
The channel of the value of the flow.

Properties

NameDescription
ArcWidthGets or sets the thickness of the arcs of the nodes, in pixels. The default is 12.
LinkOpacityGets or sets the opacity of the ribbons, from 0 to 1. The default is 0.7.
NodePaddingGets or sets the space between the arcs of two nodes, in pixels along the inner circle. The default is 10.
ShowLabelsGets or sets a value that indicates whether the names of the nodes are drawn around the circle. The default is true.
SourceGets the channel of the name of the node the flow leaves.
TargetGets the channel of the name of the node the flow reaches.
ValueGets the channel of the value of the flow.

ArcWidth

ChordMark.cs

Gets or sets the thickness of the arcs of the nodes, in pixels. The default is 12.

public double ArcWidth { get; set; }

Property value

double

LinkOpacity

ChordMark.cs

Gets or sets the opacity of the ribbons, from 0 to 1. The default is 0.7.

public double LinkOpacity { get; set; }

Property value

double

NodePadding

ChordMark.cs

Gets or sets the space between the arcs of two nodes, in pixels along the inner circle. The default is 10.

public double NodePadding { get; set; }

Property value

double

ShowLabels

ChordMark.cs

Gets or sets a value that indicates whether the names of the nodes are drawn around the circle. The default is true.

public bool ShowLabels { get; set; }

Property value

bool

Gets the channel of the name of the node the flow leaves.

public Func<T, object?> Source { get; }

Property value

Func<T, object?>

Gets the channel of the name of the node the flow reaches.

public Func<T, object?> Target { get; }

Property value

Func<T, object?>

Gets the channel of the value of the flow.

public Func<T, object?> Value { get; }

Property value

Func<T, object?>