SankeySeries<TModel, TVisual, TLabel>

Defines a sankey series in the user interface with custom node visual and label.

Class · Namespace LiveChartsCore.SkiaSharpView · Assembly LiveChartsCore.SkiaSharpView · View source

Type parameters

TModel *summary not found*
TVisual *summary not found*
TLabel *summary not found*

Inheritance

Object ChartElement Series<TModel, TVisual, TLabel> CoreSankeySeries<TModel, TVisual, TLabel> SankeySeries<TModel, TVisual, TLabel>

Implements

Derived

SankeySeries<TModel> SankeySeries<TModel, TVisual>

Members

Properties

Fill Paint
Gets or sets the fill.
Guide: Basic sankey
Stroke Paint
Gets or sets the stroke.
Guide: Paints
LinkFill Paint
Fill paint applied to flow ribbons. Typically a translucent version of IStrokedAndFilled.Fill; when null the ribbons inherit IStrokedAndFilled.Fill directly.
Guide: Paints
NodeWidth Double
Width (px) reserved for each node's column rectangle. Default 12.
Guide: Layout
NodePadding Double
Vertical gap (px) between sibling nodes within the same column. Default 8.
Guide: Layout
NodeCornerRadius Double
Corner radius (px) applied to node rectangles when the visual is a rounded-rectangle geometry. Default 0 — matches the typical d3-sankey sharp-corner aesthetic. Ignored when the user picks a custom TVisual that doesn't derive from BaseRoundedRectangleGeometry.
Guide: Layout
LayoutIterations Int32
Number of relaxation iterations used by the d3-sankey layout to minimize ribbon crossings. Higher = cleaner but slower. Default 32.
Guide: Layout
NodeLabelPosition SankeyLabelPosition
Where node labels are placed relative to the node rectangle.
Guide: Arc layout
Layout SankeyLayoutKind
How the graph is laid out on the canvas. Default SankeyLayoutKind.Vertical — the classic d3-sankey L→R column layout. Other modes (e.g. SankeyLayoutKind.BipartiteArc) have their own constraints; see the enum members for details.
Guide: Arc layout
ArcSpanDegrees Double
Angular span (degrees) covered by each arc when ISankeySeries.Layout = SankeyLayoutKind.BipartiteArc. Default 150°: each arc covers 150° leaving a 30° gap at the top and bottom poles of the ellipse. Ignored in other layout modes.
Guide: Arc layout
NodeColorMapper Func<TModel, LvcColor>
Per-node color override. When non-null, the returned LvcColor is applied to the node's visual — the visual must implement IColoredGeometry (the default ColoredRoundedRectangleGeometry does). When null the series's CoreSankeySeries.Fill paint color flows through unchanged.
Guide: Node and link colors
LinkColorMapper Func<SankeyLink<TModel>, LvcColor>
Per-link color override. When null, ribbons inherit the source node's color (via CoreSankeySeries.NodeColorMapper) tinted to half opacity, or fall back to CoreSankeySeries.LinkFill / CoreSankeySeries.Fill. Set explicitly to take full control of per-ribbon color including alpha.
Guide: Node and link colors
LabelMapper Func<TModel, String>
Returns the per-node label text. Set Series.DataLabelsPaint to opt in. When null and TModel is the built-in SankeyNode, SankeyNode.Name is used automatically.
Guide: Nodes and links
ToolTipLabelFormatter Func<ChartPoint<TModel, TVisual, TLabel>, String>
Tooltip label formatter on the typed point — null falls back to "
Guide: Tooltips and legends
SeriesProperties SeriesProperties
Gets the properties of the series.
Name String
Gets or sets the name of the series, the name is normally used by IChartTooltip or IChartLegend, the default value is set automatically by the library.
Guide: Nodes and links
Values IReadOnlyCollection<TModel>
Gets or sets the values.
Guide: Sankey diagrams
Pivot Double
Gets or sets the value where the direction of the axis changes, by default is 0.
Mapping Func<TModel, Int32, Coordinate>
Gets or sets the mapping.
GeometrySvg String
Gets or sets the series geometry svg, this property requires the series visual to be an IVariableSvgPath instance.
ZIndex Int32
Gets or sets the z index position.
DataLabelsFormatter Func<ChartPoint<TModel, TVisual, TLabel>, String>
Gets or sets the data labels formatter, the function receives a ChartPoint instance and must return a string.
Guide: Labels
IsHoverable Boolean
Gets or sets a value indicating whether this instance will show up in tool tips when the pointer is over a point. default value is true.
IsVisibleAtLegend Boolean
Gets or sets a value indicating whether this instance will show up in legends. default value is true.
DataPadding LvcPoint
Gets or sets the data padding, the distance from the edge of the chart to where the series is drawn, both coordinates (X and Y) from 0 to 1, where 0 is nothing and 1 is the axis tick (the separation between every label).
AnimationsSpeed Nullable<TimeSpan>
Gets or sets the animations speed; when null the series inherits the chart-level animation (see Chart.Animation). Set it to TimeSpan.Zero to disable animations for this series only.
Guide: Title and animations
EasingFunction Func<Single, Single>
Gets or sets the easing function used to animate the series; when null the series inherits the chart-level easing (see Chart.Animation).
Guide: Title and animations
DataFactory DataFactory<TModel>
Gets the data factory.
MiniatureShapeSize Double
Gets or sets the size of the legend shape.
MiniatureStrokeThickness Double
Gets or sets the miniature stroke thickness.
ShowDataLabels Boolean
Indicates whether the data labels are visible, to set the color use the ISeries.DataLabelsPaint property, the ISeries.DataLabelsPaint property could be defined by the theme when not explicitly set. Default is false.
Guide: Labels
DataLabelsPaint Paint
Gets or sets the data labels paint.
Guide: Basic sankey
DataLabelsSize Double
Gets or sets the size of the data labels.
Guide: Labels
DataLabelsRotation Double
Gets or sets the data labels rotation in degrees.
DataLabelsPadding Padding
Gets or sets the data labels padding.
DataLabelsMaxWidth Double
Gets or sets the max width of the data labels.
VisualStates VisualStatesDictionary
Gets the visual states, states define the look of chart points when they are in a certain state, for example the hover, active, or selected states.
Tag Object
Gets or sets the object that contains data about the control.
IsVisible Boolean
Gets or sets a value indicating whether the element is visible.

Methods

Invalidate 1 parameter

Invalidates the IChartElement in the user interface.

Chart chart The chart.

GetPrimaryToolTipText 1 parameter

Gets the tool tip text for a give chart point.

ChartPoint point The chart point.

GetSecondaryToolTipText 1 parameter

Gets the tool tip text for a give chart point.

ChartPoint point The chart point.

GetMiniatureGeometry 1 parameter

Returns a geometry that represents the series in a tooltip or legend.

ChartPoint point The target point.

SoftDeleteOrDispose 1 parameter

Deletes the series from the user interface.

IChartView chart The chart that draws the series.

GetStackGroup No parameters

Gets the stack group, normally used internally to handled the stacked series.

RestartAnimations No parameters

Clears the visuals in the cache and re-starts animations.

GetDataLabelText 1 parameter

Gets the data label content for a given chart point.

ChartPoint point The chart point.

RemoveFromUI 1 parameter

Removes the element from the UI.

Chart chart The chart.

ConvertToTypedChartPoint 1 parameter

Converts a chart to a strong-typed version of it.

ChartPoint point

RemoveOldPaints 1 parameter

Deletes the Paint instances that changed from the user interface.

IChartView chart The chart.

Events

PointMeasured Action<ChartPoint<TModel, TVisual, TLabel>>
Occurs when a point in this series is measured. This is the non-generic counterpart of Series.PointMeasured, exposed so code that only has an ISeries reference (e.g. a theme rule) can react per point.
PointCreated Action<ChartPoint<TModel, TVisual, TLabel>>
Occurs when a point in this series is created. This is the non-generic counterpart of Series.PointCreated, exposed so code that only has an ISeries reference (e.g. a theme rule) can react per point.
DataPointerDown ChartPointsHandler<TModel, TVisual, TLabel>
Occurs when the pointer goes down over a chart point(s). This is the non-generic counterpart of Series.DataPointerDown.
ChartPointPointerHover ChartPointHandler<TModel, TVisual, TLabel>
Occurs when the pointer is over a chart point. This is the non-generic counterpart of Series.ChartPointPointerHover.
ChartPointPointerHoverLost ChartPointHandler<TModel, TVisual, TLabel>
Occurs when the pointer left a chart point. This is the non-generic counterpart of Series.ChartPointPointerHoverLost.
ChartPointPointerDown ChartPointHandler<TModel, TVisual, TLabel>
Occurs when the pointer goes down over a chart point, if there are multiple points the closest one is selected. This is the non-generic counterpart of Series.ChartPointPointerDown.
PropertyChanged PropertyChangedEventHandler
Occurs when a property value changes.

Constructors

SankeySeries<TModel, TVisual, TLabel> No parameters

Initializes a new instance of the SankeySeries class.

SankeySeries<TModel, TVisual, TLabel> 1 parameter

Initializes a new instance with the given nodes.

IReadOnlyCollection<TModel> nodes *summary not found*