Skip to main content
196

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Android docs
Data displayAndroid

Box plot

Shows precomputed quartiles, whiskers and outliers on one numeric scale.

Public APILumenBoxPlotAndroid / Compose

Native example

Use Box plot

Supply ordered statistics or five null values for a missing summary. Applications own statistical methods.

Box plot rendered in the Android phone emulator Lumen playground
Captured exampleAndroid phone emulator
kotlin
LumenBoxPlot(data = listOf(LumenBoxPlotDatum("north", "North", 12.0, 22.0, 31.0, 44.0, 61.0)), label = "Response distribution")

Reference

Public API

The primary shared and platform-specific options exposed by LumenBoxPlot.

APIValues or typeDefaultDescription
dataLumenBoxPlotDatum[]RequiredPrecomputed min/q1/median/q3/max plus optional finite outliers. min/max are whisker bounds.
domainFinite numeric rangeAutomaticEncloses every statistic and outlier.
statisticLabels, labelsLocalized statistic names and formattingEnglishNames quartiles, median, whiskers and outliers.
showDataBooleantrueProvides the visible expandable exact statistics.

Native behavior

Design and accessibility

When to use it

Supply ordered statistics or five null values for a missing summary. Applications own statistical methods.

Accessibility

Provides exact statistics with a contrasting median and outlined outliers.

Shared component

Available on other platforms

React NativeApple / SwiftUI
Android docsCompose module