Skip to content

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

LiveChartViewModel.InitializeSignalPlotLines(IEnumerable? 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 InitializeSignalPlotLines(IEnumerable<IObservable<(string? Name, IList<double>? Value, IList<double> DateTime, int Axis)>> observables)
  • 2. public void InitializeSignalPlotLines((string? Name, IList<double>? Value, IList<double> DateTime, int Axis) data)

1. Overload

public void InitializeSignalPlotLines(IEnumerable<IObservable<(string? Name, IList<double>? Value, IList<double> DateTime, int Axis)>> observables)

View source

Summary: Initializes plot lines for signal data using the provided collection of observables.

Parameters

NameTypeDescription
observablesIEnumerable? Value, IList DateTime, int Axis)>>A collection of observables, each representing a signal with a name, value series, date-time series, and axis index. Each observable supplies the data to be plotted as a signal line.

Remarks

This method configures the plot to use date-time values on the X-axis and associates each signal with its specified axis. The plot lines are created with support for color legends and fixed-point options as determined by the current view model settings.

2. Overload

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

View source

Summary: Initializes plot lines for a signal using the specified data, configuring the plot to use a date-time X axis.

Parameters

NameTypeDescription
data(string? Name, IList? Value, IList DateTime, int Axis)A tuple containing the signal's name, values, date-time points, and the axis index to plot against. The 'Name' may be null to indicate an unnamed signal. 'Value' is the collection of Y values; may be null if no data is available. 'DateTime' is the collection of X values representing date-time points. 'Axis' specifies the Y axis index for plotting.

Remarks

This method sets up the plot lines for a single signal, using date-time values for the X axis. The plot UI is created and color legend is set automatically. If 'Value' is null or empty, no data points will be plotted.