Skip to content

,System.Collections.Generic.IList{System.Double},System.Int32})} ,System.Collections.Generic.IList{System.Double},System.Int32}})}

LiveChartViewModel.InitializeLinesForSignalPoints((string? Name, IList? Value, IList DateTime, int Axis)) method

Defined in

Type: LiveChartViewModel Namespace: CrissCross.WPF.Plot Assembly: CrissCross.WPF.Plot.dll

Applies to

net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481

Overloads

  • 1. public void InitializeLinesForSignalPoints((string? Name, IList<double>? Value, IList<double> DateTime, int Axis) data)
  • 2. public void InitializeLinesForSignalPoints(IEnumerable<(string? Name, IList<double>? Value, IList<double> DateTime, int Axis)> data)

1. Overload

public void InitializeLinesForSignalPoints((string? Name, IList<double>? Value, IList<double> DateTime, int Axis) data)

View source

Summary: Initializes plot lines for a single set of signal points using the specified data tuple.

Parameters

NameTypeDescription
data(string? Name, IList? Value, IList DateTime, int Axis)A tuple containing the signal's name, value list, date/time list, and axis index. The 'Name' identifies the signal; 'Value' provides the Y-values; 'DateTime' supplies the X-values; and 'Axis' specifies which Y-axis to use for plotting.

Remarks

Use this method to visualize a single signal on the plot, associating its values and timestamps with the specified axis. The method does not treat the X-axis as a date/time axis; the 'DateTime' values are used as X-coordinates. All elements of the tuple must be provided; ensure that 'Value' and 'DateTime' lists are of equal length for correct plotting.

2. Overload

public void InitializeLinesForSignalPoints(IEnumerable<(string? Name, IList<double>? Value, IList<double> DateTime, int Axis)> data)

View source

Summary: Initializes plot lines for a collection of signal points, configuring each line based on the provided data series.

Parameters

NameTypeDescription
dataIEnumerable<(string? Name, IList? Value, IList DateTime, int Axis)>A collection of tuples representing signal point data. Each tuple contains an optional name, an optional list of values, a list of date-time values, and an axis index specifying which Y-axis to use for the series.

Remarks

Each signal point is rendered as a line on the plot, with its axis assignment determined by the Axis value in the tuple. The method does not treat the X-axis as date-time values. Ensure that the DateTime list in each tuple contains valid values corresponding to the data series.