Skip to main content

Number

Statistics

LineUp-lite computes the following statistics for a numerical attribute:

export interface INumberStats extends IBoxPlot, INumericStats<number> {}

see INumberStats API Docs

Generator Function

The stats generator function has the following signature. It returns a function that can be used to compute statistics for a given array.

export function numberStatsGenerator(
options: NumberStatsOptions = {}
): (arr: readonly number[] | Float32Array | Float64Array) => INumberStats;

see numberStatsGenerator API Docs

Example

Live Editor
Result
Loading...

Visualization

Cell

NumberBar React component, NumberColor React component, or NumberSymbol React component.

Live Editor
Result
Loading...

Aggregation

Histogram React component or BoxPlot React component

Live Editor
Result
Loading...

Interactive Summary

FilterRangeHistogram React component or FilterRangeBoxPlot React component

Live Editor
Result
Loading...

Composite: Stacked Bar

StackedBar React component

Live Editor
Result
Loading...