ColumnCartesianLayer

open class ColumnCartesianLayer(var columnProvider: ColumnCartesianLayer.ColumnProvider, var columnCollectionSpacingDp: Float = Defaults.COLUMN_COLLECTION_SPACING, var mergeMode: (ExtraStore) -> ColumnCartesianLayer.MergeMode = { MergeMode.Grouped() }, var dataLabel: TextComponent? = null, var dataLabelVerticalPosition: VerticalPosition = VerticalPosition.Top, var dataLabelValueFormatter: CartesianValueFormatter = CartesianValueFormatter.decimal(), var dataLabelRotationDegrees: Float = 0.0f, var rangeProvider: CartesianLayerRangeProvider = CartesianLayerRangeProvider.auto(), var verticalAxisPosition: Axis.Position.Vertical? = null, var drawingModelInterpolator: CartesianLayerDrawingModelInterpolator<ColumnCartesianLayerDrawingModel.ColumnInfo, ColumnCartesianLayerDrawingModel> = CartesianLayerDrawingModelInterpolator.default()) : BaseCartesianLayer<ColumnCartesianLayerModel>

Displays data as vertical bars.

Constructors

Link copied to clipboard
constructor(columnProvider: ColumnCartesianLayer.ColumnProvider, columnCollectionSpacingDp: Float = Defaults.COLUMN_COLLECTION_SPACING, mergeMode: (ExtraStore) -> ColumnCartesianLayer.MergeMode = { MergeMode.Grouped() }, dataLabel: TextComponent? = null, dataLabelVerticalPosition: VerticalPosition = VerticalPosition.Top, dataLabelValueFormatter: CartesianValueFormatter = CartesianValueFormatter.decimal(), dataLabelRotationDegrees: Float = 0.0f, rangeProvider: CartesianLayerRangeProvider = CartesianLayerRangeProvider.auto(), verticalAxisPosition: Axis.Position.Vertical? = null, drawingModelInterpolator: CartesianLayerDrawingModelInterpolator<ColumnCartesianLayerDrawingModel.ColumnInfo, ColumnCartesianLayerDrawingModel> = CartesianLayerDrawingModelInterpolator.default())

Types

Link copied to clipboard
interface ColumnProvider

Provides column LineComponents to ColumnCartesianLayers.

Link copied to clipboard
sealed interface MergeMode

Defines how a ColumnCartesianLayer should draw columns in column collections.

Properties

Link copied to clipboard

the spacing between neighboring column collections (in dp).

Link copied to clipboard
Link copied to clipboard

the TextComponent for the data labels. Use null for no data labels.

Link copied to clipboard

the rotation of the data labels (in degrees).

Link copied to clipboard

the vertical position of each data label relative to its column’s top edge.

Link copied to clipboard
Link copied to clipboard

defines how columns should be drawn in column collections.

Link copied to clipboard

defines the x and y ranges.

Link copied to clipboard

the position of the VerticalAxis with which the ColumnCartesianLayer 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.