ColumnChart

data class ColumnChart(val columns: List<LineComponent>, val outsideSpacing: Dp = DefaultDimens.COLUMN_OUTSIDE_SPACING.dp, val innerSpacing: Dp = DefaultDimens.COLUMN_INSIDE_SPACING.dp, val mergeMode: ColumnChart.MergeMode = MergeMode.Grouped, val dataLabel: TextComponent? = null, val dataLabelVerticalPosition: VerticalPosition = VerticalPosition.Top, val dataLabelValueFormatter: ValueFormatter = DecimalFormatValueFormatter(), val dataLabelRotationDegrees: Float = 0.0f)

Defines the appearance of column charts.

Constructors

Link copied to clipboard
constructor(columns: List<LineComponent>, outsideSpacing: Dp = DefaultDimens.COLUMN_OUTSIDE_SPACING.dp, innerSpacing: Dp = DefaultDimens.COLUMN_INSIDE_SPACING.dp, mergeMode: ColumnChart.MergeMode = MergeMode.Grouped, dataLabel: TextComponent? = null, dataLabelVerticalPosition: VerticalPosition = VerticalPosition.Top, dataLabelValueFormatter: ValueFormatter = DecimalFormatValueFormatter(), dataLabelRotationDegrees: Float = 0.0f)

Properties

Link copied to clipboard

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.

Link copied to clipboard

an optional TextComponent to use for data labels.

Link copied to clipboard

the rotation of data labels in degrees.

Link copied to clipboard

the ValueFormatter to use for data labels.

Link copied to clipboard

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

Link copied to clipboard

the distance between neighboring grouped columns.

Link copied to clipboard

defines the way multiple columns are rendered in ColumnCharts.

Link copied to clipboard

the distance between neighboring column collections.