Skip to content

LiveChart.AssignLiveChartData(object, UserPlotType) method

Defined in

Type: LiveChart 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

public void AssignLiveChartData(object source, UserPlotType type)

View source

Summary: Assigns live chart data to the appropriate plot type based on the specified source and plot type.

Parameters

NameTypeDescription
sourceobjectThe data source object containing chart data. The expected type depends on the value of type; must be compatible with the selected plot type.
type[UserPlotType](#The plot type that determines how the chart data from source will be assigned.

Remarks

The method selects the appropriate data assignment strategy according to the specified plot type. If source is not of a compatible type for the given type, no action is taken. This method does not throw exceptions for type mismatches.