axisLabelComponent

fun axisLabelComponent(color: Color = currentChartStyle.axis.axisLabelColor, textSize: TextUnit = currentChartStyle.axis.axisLabelTextSize, background: ShapeComponent? = currentChartStyle.axis.axisLabelBackground, ellipsize: TextUtils.TruncateAt = TextUtils.TruncateAt.END, lineCount: Int = currentChartStyle.axis.axisLabelLineCount, verticalPadding: Dp = currentChartStyle.axis.axisLabelVerticalPadding, horizontalPadding: Dp = currentChartStyle.axis.axisLabelHorizontalPadding, verticalMargin: Dp = currentChartStyle.axis.axisLabelVerticalMargin, horizontalMargin: Dp = currentChartStyle.axis.axisLabelHorizontalMargin, typeface: Typeface = currentChartStyle.axis.axisLabelTypeface, textAlignment: Layout.Alignment = currentChartStyle.axis.axisLabelTextAlignment): TextComponent

Creates a TextComponent to be used for axis labels.

Parameters

color

the text color.

textSize

the text size.

background

an optional ShapeComponent to be displayed behind the text.

ellipsize

the text truncation behavior.

lineCount

the line count.

verticalPadding

the amount of top and bottom padding between the text and the background.

horizontalPadding

the amount of start and end padding between the text and the background.

verticalMargin

the size of the top and bottom margins around the background.

horizontalMargin

the size of the start and end margins around the background.

typeface

the Typeface for the text.

textAlignment

the text alignment.


fun axisLabelComponent(color: Color = currentChartStyle.axis.axisLabelColor, textSize: TextUnit = currentChartStyle.axis.axisLabelTextSize, background: ShapeComponent? = currentChartStyle.axis.axisLabelBackground, ellipsize: TextUtils.TruncateAt = TextUtils.TruncateAt.END, lineCount: Int = currentChartStyle.axis.axisLabelLineCount, verticalPadding: Dp = currentChartStyle.axis.axisLabelVerticalPadding, horizontalPadding: Dp = currentChartStyle.axis.axisLabelHorizontalPadding, verticalMargin: Dp = currentChartStyle.axis.axisLabelVerticalMargin, horizontalMargin: Dp = currentChartStyle.axis.axisLabelHorizontalMargin, typeface: Typeface = currentChartStyle.axis.axisLabelTypeface, textAlign: Paint.Align): TextComponent

Deprecated

Instead of `textAlign`, use `textAlignment`.

Creates a TextComponent to be used for axis labels.

Parameters

color

the text color.

textSize

the text size.

background

an optional ShapeComponent to be displayed behind the text.

ellipsize

the text truncation behavior.

lineCount

the line count.

verticalPadding

the amount of top and bottom padding between the text and the background.

horizontalPadding

the amount of start and end padding between the text and the background.

verticalMargin

the size of the top and bottom margins around the background.

horizontalMargin

the size of the start and end margins around the background.

typeface

the Typeface for the text.

textAlign

the text alignment.