Skip to main content
196

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
React Native docs
Data displayReact Native

Box plot

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

Public APILumenBoxPlotReact Native

Native example

Use Box plot

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

View captured React Native example
Box plot rendered in the Expo web renderer Lumen playground
Captured exampleExpo web renderer
tsx
<LumenBoxPlot label="Response distribution" data={[{ id: "north", label: "North", min: 12, q1: 22, median: 31, q3: 44, max: 61 }]} />

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

Apple / SwiftUIAndroid / Compose
React Native docsNative primitives