Package-level declarations

Functions

Link copied to clipboard
fun CandlestickCartesianLayer.CandleProvider.Companion.absolute(bullish: CandlestickCartesianLayer.Candle = Candle.sharpFilledCandle(vicoTheme.candlestickCartesianLayerColors.bullish), neutral: CandlestickCartesianLayer.Candle = bullish.copyWithColor(vicoTheme.candlestickCartesianLayerColors.neutral), bearish: CandlestickCartesianLayer.Candle = bullish.copyWithColor(vicoTheme.candlestickCartesianLayerColors.bearish)): CandlestickCartesianLayer.CandleProvider
Link copied to clipboard
fun CandlestickCartesianLayer.CandleProvider.Companion.absoluteRelative(absolutelyBullishRelativelyBullish: CandlestickCartesianLayer.Candle = Candle.sharpHollowCandle(vicoTheme.candlestickCartesianLayerColors.bullish), absolutelyBullishRelativelyNeutral: CandlestickCartesianLayer.Candle = absolutelyBullishRelativelyBullish.copyWithColor( vicoTheme.candlestickCartesianLayerColors.neutral ), absolutelyBullishRelativelyBearish: CandlestickCartesianLayer.Candle = absolutelyBullishRelativelyBullish.copyWithColor( vicoTheme.candlestickCartesianLayerColors.bearish ), absolutelyNeutralRelativelyBullish: CandlestickCartesianLayer.Candle = absolutelyBullishRelativelyBullish, absolutelyNeutralRelativelyNeutral: CandlestickCartesianLayer.Candle = absolutelyBullishRelativelyNeutral, absolutelyNeutralRelativelyBearish: CandlestickCartesianLayer.Candle = absolutelyBullishRelativelyBearish, absolutelyBearishRelativelyBullish: CandlestickCartesianLayer.Candle = Candle.sharpFilledCandle(vicoTheme.candlestickCartesianLayerColors.bullish), absolutelyBearishRelativelyNeutral: CandlestickCartesianLayer.Candle = absolutelyBearishRelativelyBullish.copyWithColor( vicoTheme.candlestickCartesianLayerColors.neutral ), absolutelyBearishRelativelyBearish: CandlestickCartesianLayer.Candle = absolutelyBearishRelativelyBullish.copyWithColor( vicoTheme.candlestickCartesianLayerColors.bearish )): CandlestickCartesianLayer.CandleProvider
Link copied to clipboard
fun ColumnCartesianLayer.MergeMode.Companion.grouped(columnSpacing: Dp = Defaults.GROUPED_COLUMN_SPACING.dp): ColumnCartesianLayer.MergeMode.Grouped

Creates a MergeMode.Grouped instance.

Link copied to clipboard
fun LineCartesianLayer.Companion.point(component: Component, size: Dp = Defaults.POINT_SIZE.dp): LineCartesianLayer.Point
Link copied to clipboard
fun rememberCandlestickCartesianLayer(candles: CandlestickCartesianLayer.CandleProvider = CandlestickCartesianLayer.CandleProvider.absolute(), minCandleBodyHeight: Dp = Defaults.MIN_CANDLE_BODY_HEIGHT_DP.dp, candleSpacing: Dp = Defaults.CANDLE_SPACING_DP.dp, scaleCandleWicks: Boolean = false, rangeProvider: CartesianLayerRangeProvider = remember { CartesianLayerRangeProvider.auto() }, verticalAxisPosition: Axis.Position.Vertical? = null, drawingModelInterpolator: CartesianLayerDrawingModelInterpolator<CandlestickCartesianLayerDrawingModel.CandleInfo, CandlestickCartesianLayerDrawingModel> = CartesianLayerDrawingModelInterpolator.default()): CandlestickCartesianLayer

Creates and remembers a CandlestickCartesianLayer.

Link copied to clipboard
fun rememberColumnCartesianLayer(columnProvider: ColumnCartesianLayer.ColumnProvider = ColumnCartesianLayer.ColumnProvider.series( vicoTheme.columnCartesianLayerColors.map { color -> rememberLineComponent( color, Defaults.COLUMN_WIDTH.dp, CorneredShape.rounded(Defaults.COLUMN_ROUNDNESS_PERCENT), ) } ), columnCollectionSpacing: Dp = Defaults.COLUMN_COLLECTION_SPACING.dp, mergeMode: (ExtraStore) -> ColumnCartesianLayer.MergeMode = { MergeMode.grouped() }, dataLabel: TextComponent? = null, dataLabelVerticalPosition: VerticalPosition = VerticalPosition.Top, dataLabelValueFormatter: CartesianValueFormatter = remember { CartesianValueFormatter.decimal() }, dataLabelRotationDegrees: Float = 0.0f, rangeProvider: CartesianLayerRangeProvider = remember { CartesianLayerRangeProvider.auto() }, verticalAxisPosition: Axis.Position.Vertical? = null, drawingModelInterpolator: CartesianLayerDrawingModelInterpolator<ColumnCartesianLayerDrawingModel.ColumnInfo, ColumnCartesianLayerDrawingModel> = remember { CartesianLayerDrawingModelInterpolator.default() }): ColumnCartesianLayer

Creates and remembers a ColumnCartesianLayer.

Link copied to clipboard
fun LineCartesianLayer.Companion.rememberLine(fill: LineCartesianLayer.LineFill = vicoTheme.lineCartesianLayerColors.first().let { color -> remember(color) { LineCartesianLayer.LineFill.single(fill(color)) } }, thickness: Dp = Defaults.LINE_SPEC_THICKNESS_DP.dp, areaFill: LineCartesianLayer.AreaFill? = remember(fill) { fill.getDefaultAreaFill() }, cap: StrokeCap = StrokeCap.Round, pointProvider: LineCartesianLayer.PointProvider? = null, pointConnector: LineCartesianLayer.PointConnector = remember { LineCartesianLayer.PointConnector.cubic() }, dataLabel: TextComponent? = null, dataLabelVerticalPosition: VerticalPosition = VerticalPosition.Top, dataLabelValueFormatter: CartesianValueFormatter = remember { CartesianValueFormatter.decimal() }, dataLabelRotationDegrees: Float = 0.0f): LineCartesianLayer.Line

Creates and remembers a LineCartesianLayer.Line.

Link copied to clipboard
fun rememberLineCartesianLayer(lineProvider: LineCartesianLayer.LineProvider = LineCartesianLayer.LineProvider.series( vicoTheme.lineCartesianLayerColors.map { color -> LineCartesianLayer.rememberLine(LineCartesianLayer.LineFill.single(fill(color))) } ), pointSpacing: Dp = Defaults.POINT_SPACING.dp, rangeProvider: CartesianLayerRangeProvider = remember { CartesianLayerRangeProvider.auto() }, verticalAxisPosition: Axis.Position.Vertical? = null, drawingModelInterpolator: CartesianLayerDrawingModelInterpolator<LineCartesianLayerDrawingModel.PointInfo, LineCartesianLayerDrawingModel> = remember { CartesianLayerDrawingModelInterpolator.default() }): LineCartesianLayer

Creates and remembers a LineCartesianLayer.