Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
abstract class BaseAxis<P : Axis.Position>(line: LineComponent?, label: TextComponent?, labelRotationDegrees: Float, valueFormatter: CartesianValueFormatter, tick: LineComponent?, tickLength: Dp, guideline: LineComponent?, size: BaseAxis.Size, titleComponent: TextComponent?, title: CharSequence?) : Axis<P>

A base Axis implementation. This is extended by HorizontalAxis and VerticalAxis.

Link copied to clipboard

Draws horizontal axes. See the BaseAxis documentation for descriptions of the inherited properties.

Link copied to clipboard

Draws vertical axes. See the BaseAxis documentation for descriptions of the inherited properties.

Functions

Link copied to clipboard
fun rememberAxisGuidelineComponent(fill: Fill = Fill(vicoTheme.lineColor), thickness: Dp = Defaults.AXIS_GUIDELINE_WIDTH.dp, shape: Shape = DashedShape(), margins: Insets = Insets.Zero, strokeFill: Fill = Fill.Transparent, strokeThickness: Dp = 0.dp): LineComponent

A rememberLineComponent alias with defaults for Axis guidelines.

Link copied to clipboard
fun rememberAxisLabelComponent(style: TextStyle = TextStyle(color = vicoTheme.textColor, fontSize = Defaults.AXIS_LABEL_SIZE.sp), lineCount: Int = Defaults.AXIS_LABEL_MAX_LINES, overflow: TextOverflow = TextOverflow.Ellipsis, margins: Insets = Insets(Defaults.AXIS_LABEL_HORIZONTAL_MARGIN.dp, Defaults.AXIS_LABEL_VERTICAL_MARGIN.dp), padding: Insets = Insets(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: Insets = Insets.Zero, strokeFill: Fill = Fill.Transparent, strokeThickness: Dp = 0.dp): 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: Insets = Insets.Zero, strokeFill: Fill = Fill.Transparent, strokeThickness: Dp = 0.dp): LineComponent

A rememberLineComponent alias with defaults for Axis ticks.