Skip to main content

Numbers

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 statistics are the same as the number attribute ones.

see numberStatsGenerator API Docs

Example

Live Editor
Result
{
  "min": 10,
  "max": 50,
  "count": 25,
  "missing": 0,
  "items": [
    [
      10,
      20,
      40,
      30,
      15
    ],
    [
      21,
      39,
      25,
      42,
      18
    ],
    [
      16,
      44,
      30,
      32,
      31
    ],
    [
      39,
      50,
      43,
      32,
      24
    ],
    [
      36,
      19,
      37,
      38,
      17
    ]
  ],
  "mean": 29.92,
  "variance": 113.0336,
  "median": 31,
  "q1": 20,
  "q3": 39,
  "iqr": 19,
  "outlier": [],
  "whiskerHigh": 50,
  "whiskerLow": 10,
  "hist": [
    {
      "count": 3,
      "items": [
        10,
        15,
        16
      ],
      "x0": 10,
      "x1": 16.666666666666668,
      "label": "10 - 16.667",
      "color": "hsl(206, 64%, 29%)"
    },
    {
      "count": 5,
      "items": [
        17,
        18,
        19,
        20,
        21
      ],
      "x0": 16.666666666666668,
      "x1": 23.333333333333336,
      "label": "16.667 - 23.333",
      "color": "hsl(206, 64%, 40%)"
    },
    {
      "count": 4,
      "items": [
        24,
        25,
        30,
        30
      ],
      "x0": 23.333333333333336,
      "x1": 30.000000000000004,
      "label": "23.333 - 30",
      "color": "hsl(206, 64%, 51%)"
    },
    {
      "count": 4,
      "items": [
        31,
        32,
        32,
        36
      ],
      "x0": 30,
      "x1": 36.666666666666664,
      "label": "30 - 36.667",
      "color": "hsl(206, 64%, 62%)"
    },
    {
      "count": 7,
      "items": [
        37,
        38,
        39,
        39,
        40,
        42,
        43
      ],
      "x0": 36.66666666666667,
      "x1": 43.333333333333336,
      "label": "36.667 - 43.333",
      "color": "hsl(206, 64%, 73%)"
    },
    {
      "count": 2,
      "items": [
        44,
        50
      ],
      "x0": 43.333333333333336,
      "x1": 50,
      "label": "43.333 - 50",
      "color": "hsl(206, 64%, 84%)"
    }
  ],
  "flatMissing": 0,
  "flatItems": [
    10,
    20,
    40,
    30,
    15,
    21,
    39,
    25,
    42,
    18,
    16,
    44,
    30,
    32,
    31,
    39,
    50,
    43,
    32,
    24,
    36,
    19,
    37,
    38,
    17
  ],
  "depth": 5,
  "flatCount": 25,
  "maxBin": {
    "count": 7,
    "items": [
      37,
      38,
      39,
      39,
      40,
      42,
      43
    ],
    "x0": 36.66666666666667,
    "x1": 43.333333333333336,
    "label": "36.667 - 43.333",
    "color": "hsl(206, 64%, 73%)"
  }
}

Visualization

Cell

HeatMap1D React component

Live Editor
Result
10
20
40
30
15
21
39
25
42
18
16
44
30
32
31

LineChart React component

Live Editor
Result

Aggregation

BoxPlotArray React component

Live Editor
Result
Minimum: 10 25% Quantile: 16 Median: 21 Mean: 24.4 75% Quantile: 36 Maximum: 39 # Items: 5Minimum: 19 25% Quantile: 20 Median: 39 Mean: 34.4 75% Quantile: 44 Maximum: 50 # Items: 5Minimum: 25 25% Quantile: 30 Median: 37 Mean: 35 75% Quantile: 40 Maximum: 43 # Items: 5Minimum: 30 25% Quantile: 32 Median: 32 Mean: 34.8 75% Quantile: 38 Maximum: 42 # Items: 5Minimum: 15 25% Quantile: 17 Median: 18 Mean: 21 75% Quantile: 24 Maximum: 31 # Items: 5

MultiLineChart React component

Live Editor
Result

Interactive Summary

FilterRangeHistogram React component or FilterRangeBoxPlot React component

Live Editor
Result