Package-level declarations

Types

Link copied to clipboard
data class VicoTheme(val candlestickCartesianLayerColors: VicoTheme.CandlestickCartesianLayerColors, val columnCartesianLayerColors: List<Color>, val lineCartesianLayerColors: List<Color> = columnCartesianLayerColors, val lineColor: Color, val textColor: Color)

Houses default chart colors.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun dimensions(all: Dp = 0.dp): Dimensions

Creates a Dimensions instance with a common value for each coordinate.

fun dimensions(horizontal: Dp = 0.dp, vertical: Dp = 0.dp): Dimensions
fun dimensions(start: Dp = 0.dp, top: Dp = 0.dp, end: Dp = 0.dp, bottom: Dp = 0.dp): Dimensions

Creates a Dimensions instance using the provided measurements.

Link copied to clipboard
fun fill(color: Color): Fill

Creates a ColorFill.

fun fill(shader: DynamicShader): Fill

Creates a DynamicShaderFill.

Link copied to clipboard
fun ProvideVicoTheme(theme: VicoTheme, content: @Composable () -> Unit)

Provides a VicoTheme.

Link copied to clipboard
fun <M : MeasuringContext, D : DrawingContext> rememberHorizontalLegend(items: AdditionScope<LegendItem>.(ExtraStore) -> Unit, iconSize: Dp = Defaults.LEGEND_ICON_SIZE.dp, iconLabelSpacing: Dp = Defaults.LEGEND_ICON_LABEL_SPACING.dp, rowSpacing: Dp = Defaults.LEGEND_ROW_SPACING.dp, columnSpacing: Dp = Defaults.LEGEND_COLUMN_SPACING.dp, padding: Dimensions = Dimensions.Empty): HorizontalLegend<M, D>

Creates and remembers a HorizontalLegend.

Link copied to clipboard
fun <M : MeasuringContext, D : DrawingContext> rememberVerticalLegend(items: AdditionScope<LegendItem>.(ExtraStore) -> Unit, iconSize: Dp = Defaults.LEGEND_ICON_SIZE.dp, iconLabelSpacing: Dp = Defaults.LEGEND_ICON_LABEL_SPACING.dp, rowSpacing: Dp = Defaults.LEGEND_ROW_SPACING.dp, padding: Dimensions = Dimensions.Empty): VerticalLegend<M, D>

Creates and remembers a VerticalLegend.