Skip to content

LiveChartViewModel.CreateAxisWithTimeStamp() 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

public void CreateAxisWithTimeStamp()

View source

Summary: Configures the plot to use a bottom axis displaying date and time ticks, and sets the axis range to cover all possible date values.

Remarks

This method removes any existing bottom axis from the plot and replaces it with a new axis configured for date and time representation. The axis range is set from the minimum to the maximum supported date values. Call this method when you need the plot's X-axis to display time-based data. The axis color is also set according to the application's configuration.