columnChart

fun columnChart(columns: List<LineComponent> = currentChartStyle.columnChart.columns, spacing: Dp = currentChartStyle.columnChart.outsideSpacing, innerSpacing: Dp = currentChartStyle.columnChart.innerSpacing, mergeMode: ColumnChart.MergeMode = currentChartStyle.columnChart.mergeMode, decorations: List<Decoration>? = null, persistentMarkers: Map<Float, Marker>? = null, targetVerticalAxisPosition: AxisPosition.Vertical? = null, dataLabel: TextComponent? = currentChartStyle.columnChart.dataLabel, dataLabelVerticalPosition: VerticalPosition = currentChartStyle.columnChart.dataLabelVerticalPosition, dataLabelValueFormatter: ValueFormatter = currentChartStyle.columnChart.dataLabelValueFormatter, dataLabelRotationDegrees: Float = currentChartStyle.columnChart.dataLabelRotationDegrees, axisValuesOverrider: AxisValuesOverrider<ChartEntryModel>? = null, drawingModelInterpolator: DrawingModelInterpolator<ColumnChartDrawingModel.ColumnInfo, ColumnChartDrawingModel> = remember { DefaultDrawingModelInterpolator() }): ColumnChart

Creates a ColumnChart.

Parameters

columns

the LineComponent instances to use for columns. This list is iterated through as many times as necessary for each column collection. If the list contains a single element, all columns have the same appearance.

spacing

the distance between neighboring column collections.

innerSpacing

the distance between neighboring grouped columns.

mergeMode

defines how columns should be drawn in column collections.

decorations

the list of Decorations that will be added to the ColumnChart.

persistentMarkers

maps x-axis values to persistent Markers.

dataLabel

an optional TextComponent to use for data labels.

dataLabelVerticalPosition

the vertical position of data labels relative to the top of their respective columns.

dataLabelValueFormatter

the ValueFormatter to use for data labels.

dataLabelRotationDegrees

the rotation of data labels (in degrees).

axisValuesOverrider

overrides the minimum and maximum x-axis and y-axis values.

targetVerticalAxisPosition

if this is set, any AxisRenderer with an AxisPosition equal to the provided value will use the ChartValues provided by this chart. This is meant to be used with ComposedChart.

drawingModelInterpolator

interpolates the ColumnChart’s ColumnChartDrawingModels.

See also