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
| Name | Description |
|---|---|
| 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.csInitializes 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
dataIEnumerable<T>- The rows: the flows.
sourceFunc<T, object?>- The channel of the name of the node the flow leaves.
targetFunc<T, object?>- The channel of the name of the node the flow reaches.
valueFunc<T, object?>- The channel of the value of the flow.
Properties
| Name | Description |
|---|---|
| ArcWidth | Gets or sets the thickness of the arcs of the nodes, in pixels. The default is 12. |
| LinkOpacity | Gets or sets the opacity of the ribbons, from 0 to 1. The default is 0.7. |
| NodePadding | Gets or sets the space between the arcs of two nodes, in pixels along the inner circle. The default is 10. |
| ShowLabels | Gets or sets a value that indicates whether the names of the nodes are drawn around the circle. The default is true. |
| Source | Gets the channel of the name of the node the flow leaves. |
| Target | Gets the channel of the name of the node the flow reaches. |
| Value | Gets the channel of the value of the flow. |
ArcWidth
ChordMark.csLinkOpacity
ChordMark.csNodePadding
ChordMark.csShowLabels
ChordMark.csSource
ChordMark.csGets the channel of the name of the node the flow leaves.
Property value
Target
ChordMark.csGets the channel of the name of the node the flow reaches.
Property value
Value
ChordMark.csGets the channel of the value of the flow.