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
interface CandleProvider
Provides Candles to CandlestickCartesianLayers.
Properties
Link copied to clipboard
provides the Candles.
Link copied to clipboard
the spacing between neighboring candles.
Link copied to clipboard
Links x values to CartesianMarker.Targets.
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
open override fun prepareForTransformation(model: CandlestickCartesianLayerModel?, ranges: CartesianChartRanges, extraStore: MutableExtraStore)
Prepares the CartesianLayer for a difference animation.
Link copied to clipboard
Carries out the pending difference animation.
Link copied to clipboard
open override fun updateHorizontalDimensions(context: CartesianMeasuringContext, horizontalDimensions: MutableHorizontalDimensions, model: CandlestickCartesianLayerModel)
Updates horizontalDimensions to match this CartesianLayer’s dimensions.
Link copied to clipboard
open override fun updateRanges(ranges: MutableCartesianChartRanges, model: CandlestickCartesianLayerModel)