CandlestickCartesianLayer

open class CandlestickCartesianLayer(var candles: CandlestickCartesianLayer.CandleProvider, var minCandleBodyHeightDp: Float = Defaults.MIN_CANDLE_BODY_HEIGHT_DP, var candleSpacingDp: Float = Defaults.CANDLE_SPACING_DP, var scaleCandleWicks: Boolean = false, var rangeProvider: CartesianLayerRangeProvider = CartesianLayerRangeProvider.auto(), var verticalAxisPosition: Axis.Position.Vertical? = null, var drawingModelInterpolator: CartesianLayerDrawingModelInterpolator<CandlestickCartesianLayerDrawingModel.CandleInfo, CandlestickCartesianLayerDrawingModel> = CartesianLayerDrawingModelInterpolator.default()) : BaseCartesianLayer<CandlestickCartesianLayerModel>

Draws the content of candlestick charts.

Constructors

Link copied to clipboard
constructor(candles: CandlestickCartesianLayer.CandleProvider, minCandleBodyHeightDp: Float = Defaults.MIN_CANDLE_BODY_HEIGHT_DP, candleSpacingDp: Float = Defaults.CANDLE_SPACING_DP, scaleCandleWicks: Boolean = false, rangeProvider: CartesianLayerRangeProvider = CartesianLayerRangeProvider.auto(), verticalAxisPosition: Axis.Position.Vertical? = null, drawingModelInterpolator: CartesianLayerDrawingModelInterpolator<CandlestickCartesianLayerDrawingModel.CandleInfo, CandlestickCartesianLayerDrawingModel> = CartesianLayerDrawingModelInterpolator.default())

Types

Link copied to clipboard
data class Candle(val body: LineComponent, val topWick: LineComponent = body.asWick(), val bottomWick: LineComponent = topWick)

Defines a candle style.

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard

the spacing between neighboring candles.

Link copied to clipboard
Link copied to clipboard

the minimum height of the candle bodies (in dp).

Link copied to clipboard

defines the x and y ranges.

Link copied to clipboard

whether the candle wicks should be scaled based on the zoom factor.

Link copied to clipboard

the position of the VerticalAxis with which the CandlestickCartesianLayer should be associated. Use this for independent CartesianLayer scaling.

Functions

Link copied to clipboard

Prepares the CartesianLayer for a difference animation.

Link copied to clipboard
open suspend override fun transform(extraStore: MutableExtraStore, fraction: Float)

Carries out the pending difference animation.

Link copied to clipboard

Updates horizontalDimensions to match this CartesianLayer’s dimensions.

Link copied to clipboard

Updates ranges in accordance with model.