Axis

data class Axis(val axisLabelBackground: ShapeComponent? = null, val axisLabelColor: Color, val axisLabelTextSize: TextUnit = DefaultDimens.AXIS_LABEL_SIZE.sp, val axisLabelLineCount: Int = DefaultDimens.AXIS_LABEL_MAX_LINES, val axisLabelVerticalPadding: Dp = DefaultDimens.AXIS_LABEL_VERTICAL_PADDING.dp, val axisLabelHorizontalPadding: Dp = DefaultDimens.AXIS_LABEL_HORIZONTAL_PADDING.dp, val axisLabelVerticalMargin: Dp = DefaultDimens.AXIS_LABEL_VERTICAL_MARGIN.dp, val axisLabelHorizontalMargin: Dp = DefaultDimens.AXIS_LABEL_HORIZONTAL_MARGIN.dp, val axisLabelRotationDegrees: Float = DefaultDimens.AXIS_LABEL_ROTATION_DEGREES, val axisLabelTypeface: Typeface = Typeface.MONOSPACE, val axisLabelTextAlign: Paint.Align = Paint.Align.LEFT, val axisLabelTextAlignment: Layout.Alignment = Layout.Alignment.ALIGN_NORMAL, val axisGuidelineColor: Color, val axisGuidelineWidth: Dp = DefaultDimens.AXIS_GUIDELINE_WIDTH.dp, val axisGuidelineShape: Shape = Shapes.dashedShape( shape = Shapes.rectShape, dashLength = DefaultDimens.DASH_LENGTH.dp, gapLength = DefaultDimens.DASH_GAP.dp, ), val axisLineColor: Color, val axisLineWidth: Dp = DefaultDimens.AXIS_LINE_WIDTH.dp, val axisLineShape: Shape = Shapes.rectShape, val axisTickColor: Color = axisLineColor, val axisTickWidth: Dp = axisLineWidth, val axisTickShape: Shape = Shapes.rectShape, val axisTickLength: Dp = DefaultDimens.AXIS_TICK_LENGTH.dp, val axisValueFormatter: AxisValueFormatter<AxisPosition> = DecimalFormatAxisValueFormatter())

Defines the appearance of chart axes.

Constructors

Link copied to clipboard
constructor(axisLabelBackground: ShapeComponent? = null, axisLabelColor: Color, axisLabelTextSize: TextUnit = DefaultDimens.AXIS_LABEL_SIZE.sp, axisLabelLineCount: Int = DefaultDimens.AXIS_LABEL_MAX_LINES, axisLabelVerticalPadding: Dp = DefaultDimens.AXIS_LABEL_VERTICAL_PADDING.dp, axisLabelHorizontalPadding: Dp = DefaultDimens.AXIS_LABEL_HORIZONTAL_PADDING.dp, axisLabelVerticalMargin: Dp = DefaultDimens.AXIS_LABEL_VERTICAL_MARGIN.dp, axisLabelHorizontalMargin: Dp = DefaultDimens.AXIS_LABEL_HORIZONTAL_MARGIN.dp, axisLabelRotationDegrees: Float = DefaultDimens.AXIS_LABEL_ROTATION_DEGREES, axisLabelTypeface: Typeface = Typeface.MONOSPACE, axisLabelTextAlign: Paint.Align = Paint.Align.LEFT, axisLabelTextAlignment: Layout.Alignment = Layout.Alignment.ALIGN_NORMAL, axisGuidelineColor: Color, axisGuidelineWidth: Dp = DefaultDimens.AXIS_GUIDELINE_WIDTH.dp, axisGuidelineShape: Shape = Shapes.dashedShape( shape = Shapes.rectShape, dashLength = DefaultDimens.DASH_LENGTH.dp, gapLength = DefaultDimens.DASH_GAP.dp, ), axisLineColor: Color, axisLineWidth: Dp = DefaultDimens.AXIS_LINE_WIDTH.dp, axisLineShape: Shape = Shapes.rectShape, axisTickColor: Color = axisLineColor, axisTickWidth: Dp = axisLineWidth, axisTickShape: Shape = Shapes.rectShape, axisTickLength: Dp = DefaultDimens.AXIS_TICK_LENGTH.dp, axisValueFormatter: AxisValueFormatter<AxisPosition> = DecimalFormatAxisValueFormatter())

Properties

Link copied to clipboard

the color of axis guidelines.

Link copied to clipboard

the Shape used for axis guidelines.

Link copied to clipboard

the width of axis guidelines.

Link copied to clipboard

an optional ShapeComponent to display behind the text of axis labels.

Link copied to clipboard

the text color for axis labels.

Link copied to clipboard

the horizontal margin around the backgrounds of axis labels.

Link copied to clipboard

the amount of horizontal padding between the background and the text of axis labels.

Link copied to clipboard

the line count for axis labels.

Link copied to clipboard

the number of degrees by which axis labels are rotated.

Link copied to clipboard

the text alignment for axis labels.

Link copied to clipboard

the text alignment for axis labels.

Link copied to clipboard

the text size for axis labels.

Link copied to clipboard

the typeface used for axis labels.

Link copied to clipboard

the vertical margin around the backgrounds of axis labels.

Link copied to clipboard

the amount of vertical padding between the background and the text of axis labels.

Link copied to clipboard

the color of axis lines.

Link copied to clipboard

the Shape used for axis lines.

Link copied to clipboard

the width of axis lines.

Link copied to clipboard

the color of axis ticks.

Link copied to clipboard

the length of axis ticks.

Link copied to clipboard

the Shape used for axis ticks.

Link copied to clipboard

the width of axis ticks.

Link copied to clipboard