CandlestickCartesianLayer
Draws the content of candlestick charts.
Constructors
Link copied to clipboard
constructor(candleProvider: 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.Entry, CandlestickCartesianLayerDrawingModel> = CartesianLayerDrawingModelInterpolator.default())
Creates a CandlestickCartesianLayer.
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
Links x values to CartesianMarker.Targets.
Functions
Link copied to clipboard
fun copy(candleProvider: CandlestickCartesianLayer.CandleProvider = this.candleProvider, minCandleBodyHeightDp: Float = this.minCandleBodyHeightDp, candleSpacingDp: Float = this.candleSpacingDp, scaleCandleWicks: Boolean = this.scaleCandleWicks, rangeProvider: CartesianLayerRangeProvider = this.rangeProvider, verticalAxisPosition: Axis.Position.Vertical? = this.verticalAxisPosition, drawingModelInterpolator: CartesianLayerDrawingModelInterpolator<CandlestickCartesianLayerDrawingModel.Entry, CandlestickCartesianLayerDrawingModel> = this.drawingModelInterpolator): CandlestickCartesianLayer
Creates a new CandlestickCartesianLayer based on this one.
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 updateChartRanges(chartRanges: MutableCartesianChartRanges, model: CandlestickCartesianLayerModel)
Updates chartRanges in accordance with model.
Link copied to clipboard
open override fun updateDimensions(context: CartesianMeasuringContext, dimensions: MutableCartesianLayerDimensions, model: CandlestickCartesianLayerModel)
Updates dimensions to match this CartesianLayer’s dimensions.