BulletBuilderScope

A scope for configuring a bullet graph.

Parameters

axisModel

Sets the LinearAxisModel to use for the graph.

Constructors

Link copied to clipboard
constructor(axisModel: ILinearAxisModel<T>)

Types

Link copied to clipboard
class RangesScope<T>

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

Properties

Link copied to clipboard
val axis: Slot<AxisSettings<T>.() -> Unit>

Specifies the axis settings and content. See AxisSettings.

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

Content for the bullet graph's label.

Functions

Link copied to clipboard
fun comparativeMeasure(value: T, 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: T, 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: T, 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: T)

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: T, block: BulletBuilderScope.RangesScope<T>.() -> 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.