Package 

Class AxisComponentsKt

    • Method Summary

      Modifier and Type Method Description
      final static TextComponent axisLabelComponent(Color color, TextUnit textSize, ShapeComponent background, TextUtils.TruncateAt ellipsize, Integer lineCount, Dp verticalPadding, Dp horizontalPadding, Dp verticalMargin, Dp horizontalMargin, Typeface typeface, Paint.Align textAlign) Creates a label to be displayed on chart axes.
      final static LineComponent axisLineComponent(Color color, Dp thickness, Shape shape, Dp strokeWidth, Color strokeColor, DynamicShader dynamicShader, Dimensions margins) Creates a LineComponent styled as an axis line.
      final static LineComponent axisLineComponent(Color color, Dp thickness, Shape shape, Dp strokeWidth, Color strokeColor, Brush brush, Dimensions margins) Creates a LineComponent styled as an axis line.
      final static LineComponent axisTickComponent(Color color, Dp thickness, Shape shape, Dp strokeWidth, Color strokeColor, DynamicShader dynamicShader) Creates a LineComponent styled as a tick line.
      final static LineComponent axisTickComponent(Color color, Dp thickness, Shape shape, Dp strokeWidth, Color strokeColor, Brush brush) Creates a LineComponent styled as a tick line.
      final static LineComponent axisGuidelineComponent(Color color, Dp thickness, Shape shape, Dp strokeWidth, Color strokeColor, DynamicShader dynamicShader, Dimensions margins) Creates an axis guideline.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • axisLabelComponent

        @Composable() final static TextComponent axisLabelComponent(Color color, TextUnit textSize, ShapeComponent background, TextUtils.TruncateAt ellipsize, Integer lineCount, Dp verticalPadding, Dp horizontalPadding, Dp verticalMargin, Dp horizontalMargin, Typeface typeface, Paint.Align textAlign)

        Creates a label to be displayed on chart axes.

        Parameters:
        color - the text color.
        textSize - the text size.
        background - a ShapeComponent to be displayed behind the text.
        ellipsize - the text truncation behavior.
        lineCount - the line count.
        verticalPadding - the vertical padding between the text and the background.
        horizontalPadding - the horizontal padding between the text and the background.
        verticalMargin - the vertical margin around the background.
        horizontalMargin - the horizontal margin around the background.
        typeface - the typeface used for the label.
        textAlign - the text alignment.
      • axisLineComponent

        @Composable() final static LineComponent axisLineComponent(Color color, Dp thickness, Shape shape, Dp strokeWidth, Color strokeColor, DynamicShader dynamicShader, Dimensions margins)

        Creates a LineComponent styled as an axis line.

        Parameters:
        color - the background color.
        thickness - the line thickness.
        shape - the ChartShape to use for the line.
        strokeWidth - the stroke width.
        strokeColor - the stroke color.
        dynamicShader - an optional DynamicShader to apply to the line.
        margins - the margins of the line.
      • axisLineComponent

        @Composable() final static LineComponent axisLineComponent(Color color, Dp thickness, Shape shape, Dp strokeWidth, Color strokeColor, Brush brush, Dimensions margins)

        Creates a LineComponent styled as an axis line.

        Parameters:
        color - the background color.
        thickness - the thickness of the line.
        shape - the Shape to use for the line.
        strokeWidth - the stroke width.
        strokeColor - the stroke color.
        brush - an optional Brush to apply to the line.
        margins - the margins of the line.
      • axisTickComponent

        @Composable() final static LineComponent axisTickComponent(Color color, Dp thickness, Shape shape, Dp strokeWidth, Color strokeColor, DynamicShader dynamicShader)

        Creates a LineComponent styled as a tick line.

        Parameters:
        color - the background color.
        thickness - the thickness of the tick.
        shape - the ChartShape to use for the tick.
        strokeWidth - the stroke width.
        strokeColor - the stroke color.
        dynamicShader - an optional DynamicShader to apply to the tick.
      • axisTickComponent

        @Composable() final static LineComponent axisTickComponent(Color color, Dp thickness, Shape shape, Dp strokeWidth, Color strokeColor, Brush brush)

        Creates a LineComponent styled as a tick line.

        Parameters:
        color - the background color.
        thickness - the thickness of the line.
        shape - the Shape to use for the line.
        strokeWidth - the stroke width.
        strokeColor - the stroke color.
        brush - an optional Brush to apply to the line.
      • axisGuidelineComponent

        @Composable() final static LineComponent axisGuidelineComponent(Color color, Dp thickness, Shape shape, Dp strokeWidth, Color strokeColor, DynamicShader dynamicShader, Dimensions margins)

        Creates an axis guideline.

        Parameters:
        color - the background color.
        thickness - the line thickness.
        shape - the ChartShape to use for the guideline.
        strokeWidth - the stroke width.
        strokeColor - the stroke color.
        dynamicShader - an optional DynamicShader to apply to the guideline.
        margins - the margins of the guideline.