Skip to content

LiveChart class

Attributes: [SupportedOSPlatform("windows")]

Defined in

Namespace: CrissCross.WPF.Plot Assembly: CrissCross.WPF.Plot.dll Full name: CrissCross.WPF.Plot.LiveChart Modifiers: public

Summary

View source

        LiveChart
        

Applies to

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

Class hierarchy
classDiagram
class LiveChart
class ReactiveUserControl~LiveChartViewModel~
ReactiveUserControl~LiveChartViewModel~ <|-- LiveChart
class IComponentConnector {
    <>
}
IComponentConnector <|.. LiveChart
class IStyleConnector {
    <>
}
IStyleConnector <|.. LiveChart

Inherits from: ReactiveUserControl

Implements: IComponentConnector, IStyleConnector

Remarks

LiveChart is designed for scenarios where data changes frequently and needs to be visualized in real time, such as monitoring signals, logging data, or displaying observables. The control exposes a variety of dependency properties to configure chart appearance, data sources, and behavior, including support for multiple data series, axis labeling, and legend positioning. It is intended for use in WPF applications and supports binding to reactive data sources for dynamic updates.

Constructors

NameSummary
.ctorInitializes a new instance of the [LiveChart](# class.

Properties

NameSummary
FirstGets or sets a value indicating whether gets or sets the update.
ObservablesGets or sets the collection of observable sequences that provide named double values for the Y axis.
ReactivePlotSourcesGets or sets normalized observable-first plot sources bound to this chart.
RightWidthGets or sets the width of the right column as a GridLength value.
LegendWidthGets or sets the width, in device-independent units (pixels), of the legend area.
NSamplesGets or sets the number of samples used in calculations or data processing.
FrequencyGets or sets the frequency value used by the control.
TitleContentGets or sets the text content displayed in the title area of the control.
LegendPositionGets or sets the position of the legend within the chart.
ScatterObservablesWithTimeStampGets or sets the collection of observable sequences that provide scatter plot data points with associated timestamps and axis information.
SignalObservablesWithTimeStampGets or sets the collection of observables that provide signal data with associated timestamps and axis information.
DataLoggerObservablesWithPointsGets or sets the collection of observable data streams for logging, each providing a sequence of named data points with associated axis information and a maximum number of points to...
DataWithTimeStampGets or sets the signal data along with associated time stamps and axis information.
SignalWithPointsGets or sets the signal data, including its name, Y and X coordinate points, and axis index.
SignalsWithPointsGets or sets the collection of signal data points, where each item contains a signal name, Y-values, X-values, and an axis index.
SignalObservablesWithPointsGets or sets the collection of observables that provide signal data points for plotting or analysis.
ScatterWithPointsGets or sets the scatter plot data, including the series name, X and Y coordinate lists, and the axis index to which the data is assigned.
YAxisNameGets or sets the collection of Y-axis names and their associated colors for the chart.
ControlMenuGets or sets the collection of chart objects displayed in the control menu.
NumberPointsPlottedGets or sets the number of data points that have been plotted on the chart.
UseFixedNumberOfPointsGets or sets a value indicating whether a fixed number of points should be used for rendering or calculation.

Fields

NameSummary
static UseFixedNumberOfPointsPropertyIdentifies the UseFixedNumberOfPoints dependency property, which determines whether the chart uses a fixed number of data points for rendering.
static NumberPointsPlottedPropertyIdentifies the NumberPointsPlotted dependency property, which specifies the maximum number of data points to display in the chart.
static TitlePropertyIdentifies the TitleContent dependency property, which represents the title text displayed by the LiveChart control.
static LegendPositionPropertyIdentifies the LegendPosition dependency property, which determines the position of the legend in a LiveChart control.
static RightWidthPropertyIdentifies the RightWidth dependency property, which specifies the width of the right panel in the LiveChart control.
static LegendWidthPropertyIdentifies the LegendWidth dependency property.
static NSamplesPropertyIdentifies the NSamples dependency property, which specifies the number of samples to display in the LiveChart control.
static FrequencyPropertyIdentifies the Frequency dependency property, which specifies the data sampling frequency for the LiveChart control.
static ObservablesPropertyIdentifies the Observables dependency property, which enables data binding for a collection of observable data series in a LiveChart control.
static ReactivePlotSourcesPropertyIdentifies the ReactivePlotSources dependency property, which binds normalized observable plot sources to the chart.
static SignalObservablesWithTimeStampPropertyIdentifies the SignalObservablesWithTimeStamp dependency property, which enables binding to a collection of observables that provide time-stamped signal data for the chart.
static DataLoggerObservablesWithPointsPropertyIdentifies the DataLoggerObservablesWithPoints dependency property, which enables binding a collection of observables containing data point information to the LiveChart control.
static DataWithTimeStampPropertyIdentifies the DataWithTimeStamp dependency property, which stores a tuple containing optional string data, optional and required lists of double values, and an integer value for the...
static SignalWithPointsPropertyIdentifies the SignalWithPoints dependency property, which stores a tuple containing a signal name, optional X and Y coordinate lists, and a point count for use in LiveChart...
static SignalsWithPointsPropertyIdentifies the SignalsWithPoints dependency property, which represents a collection of signal data points to be displayed in the chart.
static SignalObservablesWithPointsPropertyIdentifies the SignalObservablesWithPoints dependency property, which enables data binding for a collection of observable data series with associated point values.
static ScatterObservablesWithTimeStampPropertyIdentifies the ScatterObservablesWithTimeStamp dependency property, which enables data binding for a collection of observable scatter data points with associated timestamps.
static ScatterWithPointsPropertyIdentifies the ScatterWithPoints dependency property, which stores the configuration for a scatter plot with associated data points.
static YAxisNamePropertyIdentifies the YAxisName dependency property, which stores the names of the Y axes for the chart.
static ControlMenuPropertyIdentifies the ControlMenu dependency property, which represents a collection of chart objects associated with the control.
TitleTitle Name Field
PlotSettingsPlotSettings Name Field
LiveHistoryBtnLiveHistoryBtn Name Field
EnableMarkerBtnEnableMarkerBtn Name Field
AddCrosshairBtnAddCrosshairBtn Name Field
RemoveLabelBtnRemoveLabelBtn Name Field

Methods

NameSummary
AssignLiveChartDataAssigns live chart data to the appropriate plot type based on the specified source and plot type.
InitializeComponentInitializeComponent
Inherited members

See also