Skip to content

CandlestickDataAdapter class

Converts date and time arguments and open, high, low, and close values into series data points. The arguments must be sorted in ascending order, so that the candlesticks are drawn in the correct order.

Namespace: Eremex.AvaloniaUI.Charts
Assembly: Eremex.Avalonia.Charts.dll
NuGet Package: Eremex.Avalonia.Controls

Declaration

public class CandlestickDataAdapter : ISeriesDataAdapter

Constructors

name description
CandlestickDataAdapter() Initializes a new instance of the CandlestickDataAdapter class that contains no candlesticks.
CandlestickDataAdapter(…) Initializes a new instance of the CandlestickDataAdapter class with the specified candlesticks.

Properties

name description
ItemCount { get; } Gets the number of data points stored in the adapter.

Methods

name description
Add(…) Adds a candlestick to the end of the adapter.
Clear() Removes all candlesticks from the adapter.
RemoveFromStart(…) Removes the specified number of candlesticks from the start of the adapter.
UpdateValue(…) Replaces the values of the specified candlestick.

See Also

Used in articles