IChartBoxPlotRawDatum

interface
Chart

Raw-samples datum for OrigamChartBoxPlot — the component derives the five-number summary via Tukey's method (linear interpolation) and detects outliers at the 1.5·IQR fence automatically. Use IChartBoxPlotDatum when the aggregation has already been done.

TypeScript

Definition

The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

API

Properties

Every property declared by this interface, with its type, optionality and default.

category
required
string
Category label shown on the X axis.
samples
required
Array<number>
Array of individual observations. Must contain at least 4 values for meaningful quartile computation. Fewer values are handled gracefully: all map to the same min/q1/median/q3/max.
color
TIntent | string
Override colour for this datum. Intent token or raw CSS colour. When absent the category index cycles through colorScheme.

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Passing raw sample arrays — let the component compute quartiles

typescript