Package-level declarations
Functions
Link copied to clipboard
fun BaseAxis.Size.Companion.auto(minSize: Dp = 0.dp, maxSize: Dp = Float.MAX_VALUE.dp): BaseAxis.Size.Auto
Creates a BaseAxis.Size.Auto instance.
Link copied to clipboard
Creates a BaseAxis.Size.Exact instance.
Link copied to clipboard
Creates a BaseAxis.Size.Fraction instance.
Link copied to clipboard
fun rememberAxisGuidelineComponent(fill: Fill = fill(vicoTheme.lineColor), thickness: Dp = Defaults.AXIS_GUIDELINE_WIDTH.dp, shape: Shape = dashedShape(), margins: Dimensions = Dimensions.Empty, strokeFill: Fill = Fill.Transparent, strokeThickness: Dp = 0.dp, shadow: Shadow? = null): LineComponent
A rememberLineComponent alias with defaults for Axis guidelines.
Link copied to clipboard
fun rememberAxisLabelComponent(color: Color = vicoTheme.textColor, typeface: Typeface = Typeface.DEFAULT, textSize: TextUnit = Defaults.AXIS_LABEL_SIZE.sp, textAlignment: Layout.Alignment = Layout.Alignment.ALIGN_NORMAL, lineHeight: TextUnit? = null, lineCount: Int = Defaults.AXIS_LABEL_MAX_LINES, truncateAt: TextUtils.TruncateAt = TextUtils.TruncateAt.END, margins: Dimensions = dimensions(Defaults.AXIS_LABEL_HORIZONTAL_MARGIN.dp, Defaults.AXIS_LABEL_VERTICAL_MARGIN.dp), padding: Dimensions = dimensions(Defaults.AXIS_LABEL_HORIZONTAL_PADDING.dp, Defaults.AXIS_LABEL_VERTICAL_PADDING.dp), background: Component? = null, minWidth: TextComponent.MinWidth = TextComponent.MinWidth.fixed()): TextComponent
A rememberTextComponent alias with defaults for Axis labels.
Link copied to clipboard
fun rememberAxisLineComponent(fill: Fill = fill(vicoTheme.lineColor), thickness: Dp = Defaults.AXIS_LINE_WIDTH.dp, shape: Shape = Shape.Rectangle, margins: Dimensions = Dimensions.Empty, strokeFill: Fill = Fill.Transparent, strokeThickness: Dp = 0.dp, shadow: Shadow? = null): LineComponent
A rememberLineComponent alias with defaults for Axis lines.
Link copied to clipboard
fun rememberAxisTickComponent(fill: Fill = fill(vicoTheme.lineColor), thickness: Dp = Defaults.AXIS_LINE_WIDTH.dp, shape: Shape = Shape.Rectangle, margins: Dimensions = Dimensions.Empty, strokeFill: Fill = Fill.Transparent, strokeThickness: Dp = 0.dp, shadow: Shadow? = null): LineComponent
A rememberLineComponent alias with defaults for Axis ticks.
Link copied to clipboard
fun HorizontalAxis.Companion.rememberBottom(line: LineComponent? = rememberAxisLineComponent(), label: TextComponent? = rememberAxisLabelComponent(), labelRotationDegrees: Float = Defaults.AXIS_LABEL_ROTATION_DEGREES, valueFormatter: CartesianValueFormatter = remember { CartesianValueFormatter.decimal() }, tick: LineComponent? = rememberAxisTickComponent(), tickLength: Dp = Defaults.AXIS_TICK_LENGTH.dp, guideline: LineComponent? = rememberAxisGuidelineComponent(), itemPlacer: HorizontalAxis.ItemPlacer = remember { HorizontalAxis.ItemPlacer.aligned() }, size: BaseAxis.Size = BaseAxis.Size.auto(), titleComponent: TextComponent? = null, title: CharSequence? = null): HorizontalAxis<Axis.Position.Horizontal.Bottom>
Creates and remembers a bottom HorizontalAxis.
Link copied to clipboard
fun VerticalAxis.Companion.rememberEnd(line: LineComponent? = rememberAxisLineComponent(), label: TextComponent? = rememberAxisLabelComponent(), labelRotationDegrees: Float = Defaults.AXIS_LABEL_ROTATION_DEGREES, horizontalLabelPosition: VerticalAxis.HorizontalLabelPosition = VerticalAxis.HorizontalLabelPosition.Outside, verticalLabelPosition: VerticalAxis.VerticalLabelPosition = VerticalAxis.VerticalLabelPosition.Center, valueFormatter: CartesianValueFormatter = remember { CartesianValueFormatter.decimal() }, tick: LineComponent? = rememberAxisTickComponent(), tickLength: Dp = Defaults.AXIS_TICK_LENGTH.dp, guideline: LineComponent? = rememberAxisGuidelineComponent(), itemPlacer: VerticalAxis.ItemPlacer = remember { VerticalAxis.ItemPlacer.step() }, size: BaseAxis.Size = BaseAxis.Size.auto(), titleComponent: TextComponent? = null, title: CharSequence? = null): VerticalAxis<Axis.Position.Vertical.End>
Creates and remembers an end VerticalAxis.
Link copied to clipboard
fun VerticalAxis.Companion.rememberStart(line: LineComponent? = rememberAxisLineComponent(), label: TextComponent? = rememberAxisLabelComponent(), labelRotationDegrees: Float = Defaults.AXIS_LABEL_ROTATION_DEGREES, horizontalLabelPosition: VerticalAxis.HorizontalLabelPosition = VerticalAxis.HorizontalLabelPosition.Outside, verticalLabelPosition: VerticalAxis.VerticalLabelPosition = VerticalAxis.VerticalLabelPosition.Center, valueFormatter: CartesianValueFormatter = remember { CartesianValueFormatter.decimal() }, tick: LineComponent? = rememberAxisTickComponent(), tickLength: Dp = Defaults.AXIS_TICK_LENGTH.dp, guideline: LineComponent? = rememberAxisGuidelineComponent(), itemPlacer: VerticalAxis.ItemPlacer = remember { VerticalAxis.ItemPlacer.step() }, size: BaseAxis.Size = BaseAxis.Size.auto(), titleComponent: TextComponent? = null, title: CharSequence? = null): VerticalAxis<Axis.Position.Vertical.Start>
Creates and remembers a start VerticalAxis.
Link copied to clipboard
fun HorizontalAxis.Companion.rememberTop(line: LineComponent? = rememberAxisLineComponent(), label: TextComponent? = rememberAxisLabelComponent(), labelRotationDegrees: Float = Defaults.AXIS_LABEL_ROTATION_DEGREES, valueFormatter: CartesianValueFormatter = remember { CartesianValueFormatter.decimal() }, tick: LineComponent? = rememberAxisTickComponent(), tickLength: Dp = Defaults.AXIS_TICK_LENGTH.dp, guideline: LineComponent? = rememberAxisGuidelineComponent(), itemPlacer: HorizontalAxis.ItemPlacer = remember { HorizontalAxis.ItemPlacer.aligned() }, size: BaseAxis.Size = BaseAxis.Size.auto(), titleComponent: TextComponent? = null, title: CharSequence? = null): HorizontalAxis<Axis.Position.Horizontal.Top>
Creates and remembers a top HorizontalAxis.
Link copied to clipboard
Creates a BaseAxis.Size.Text instance.