Skip to content

ChartSelectionLink

ClassChartGuruChartGuru
public sealed class ChartSelectionLink

Synchronizes semantic point and range selections across two or more charts. The link resolves marks by data meaning instead of assuming that every chart has the same mark ordering, and guards bidirectional callbacks against feedback loops.

ChartSelectionLink(Chart, Chart, ChartSelectionMatch, ChartSelectionPropagation)

Section titled “ChartSelectionLink(Chart, Chart, ChartSelectionMatch, ChartSelectionPropagation)”
public ChartSelectionLink(Chart first, Chart second, ChartSelectionMatch match = ChartSelectionMatch.SeriesAndX, ChartSelectionPropagation propagation = ChartSelectionPropagation.All)

Creates a semantic link between two charts.

Parameters

Name Type
first ChartGuru.Chart
second ChartGuru.Chart
match ChartGuru.ChartSelectionMatch
propagation ChartGuru.ChartSelectionPropagation

ChartSelectionLink(IEnumerable, ChartSelectionMatch, ChartSelectionPropagation)

Section titled “ChartSelectionLink(IEnumerable, ChartSelectionMatch, ChartSelectionPropagation)”
public ChartSelectionLink(IEnumerable<Chart> charts, ChartSelectionMatch match = ChartSelectionMatch.SeriesAndX, ChartSelectionPropagation propagation = ChartSelectionPropagation.All)

Creates a semantic link between every non-null, unique chart in charts.

Parameters

Name Type
charts System.Collections.Generic.IEnumerable{ChartGuru.Chart}
match ChartGuru.ChartSelectionMatch
propagation ChartGuru.ChartSelectionPropagation

public void Add(Chart chart)

Adds a chart to this link. Duplicate and null values are ignored.

Parameters

Name Type
chart ChartGuru.Chart
public bool Remove(Chart chart)

Removes a chart from this link.

Parameters

Name Type
chart ChartGuru.Chart

Returns

System.Boolean

public void Dispose()

Detaches every linked chart.

public ChartSelectionMatch Match { get; set; }

How selected marks are resolved in destination charts.

Returns

ChartGuru.ChartSelectionMatch

public ChartSelectionPropagation Propagation { get; set; }

Which point and range selection channels are synchronized.

Returns

ChartGuru.ChartSelectionPropagation

public int Count { get; }

The number of charts currently participating in the link.

Returns

System.Int32