Package-level declarations

Types

Link copied to clipboard
fun interface AdditionScope<E>

Facilitates adding elements to a collection.

Link copied to clipboard
interface Bounded

Defines an abstract component that has some physical bounds.

Link copied to clipboard

A MeasuringContext extension with a Canvas reference.

Link copied to clipboard
class Fill

Stores fill properties.

Link copied to clipboard
open class HorizontalLegend<M : MeasuringContext, D : DrawingContext>(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: Insets = Insets.Zero) : Legend<M, D>

HorizontalLegend displays legend items beside one another in lines.

Link copied to clipboard
class Insets(val start: Dp = 0f.dp, val top: Dp = 0f.dp, val end: Dp = 0f.dp, val bottom: Dp = 0f.dp)

Stores inset sizes for the sides of a rectangle. Used for margins and padding.

Link copied to clipboard
open class LayeredComponent(back: Component, front: Component, padding: Insets = Insets.Zero, margins: Insets = Insets.Zero) : Component

Draws two Components on top of each other.

Link copied to clipboard

Defines the functions required by the library to draw a chart legend.

Link copied to clipboard
open class LegendItem(val icon: Component, val labelComponent: TextComponent, val label: CharSequence)

Defines the appearance of an item of a Legend.

Link copied to clipboard

Holds data used for measuring and drawing.

Link copied to clipboard
value class Point

Represents a point in a coordinate system.

Link copied to clipboard
object Position

Defines the relative position of an object.

Link copied to clipboard
open class VerticalLegend<M : MeasuringContext, D : DrawingContext>(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: Insets = Insets.Zero) : Legend<M, D>

VerticalLegend displays legend items in a vertical list.

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 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: Insets = Insets.Zero): 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: Insets = Insets.Zero): VerticalLegend<M, D>

Creates and remembers a VerticalLegend.