BulletBuilderScope

A scope for configuring a bullet graph.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard

A scope for setting range boundaries. See range for specifying a specific range value and its graphical representation.

Properties

Link copied to clipboard

Specifies the axis settings and content. See AxisSettings.

Link copied to clipboard
val label: Slot<@Composable () -> Unit>

Content for the bullet graph's label.

Link copied to clipboard

Sets the label's width. If the BulletGraph is in a layout of multiple bullet graphs this value will be ignored and instead will take the value specified in BulletGraphScope.labelWidth.

Functions

Link copied to clipboard
fun comparativeMeasure(value: Float, indicator: @Composable () -> Unit = { LineIndicator() })

Sets the comparative measure value and the composable used to draw the indicator. The composable will be centered on the value with a width and height equal to the height of the BulletGraph background fill area.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
fun featuredMeasureBar(value: Float, indicator: @Composable () -> Unit = { HorizontalBarIndicator(SolidColor(MaterialTheme.colorScheme.primary), fraction = FeaturedMeasureDefaultSize) })

Sets the feature measure value and indicator as a bar.

Link copied to clipboard
fun featuredMeasureSymbol(value: Float, indicator: @Composable () -> Unit = { DiamondIndicator() })

Sets the feature measure value and indicator as a symbol.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun ranges(vararg values: Float)

Defines the qualitative ranges using the default visual representation. If the visual representation needs to be customized then use the overloaded version of this function.

fun ranges(start: Float = 0.0f, block: BulletBuilderScope.RangesScope.() -> Unit)

Defines the qualitative ranges starting at the specified start value. See RangesScope for how to configure individual range values and their graphical representation. If the default visual representation is desired then the overloaded version of this function that takes only a variable number of Float values may be used instead.