No Preview

Sorry, but you either have no stories or none are selected somehow.

If the problem persists, check the browser console, or the terminal you've run Storybook from.

ArraySummarize

dataに設定された配列のlength及び同一key(index)で重複するデータの個数を表示する
entries:dataのlength(要素数)

  設定例

female

4

male

5
nameagegendercountry
9
grouped by gender
NameDescriptionDefaultControl
props
title
counter title
string
data
specifies a 2D array or an object array
array
RAW
data : [
    0 : {...} 4 keys
    1 : {...} 4 keys
    2 : {...} 4 keys
    3 : {...} 4 keys
    4 : {...} 4 keys
    5 : {...} 4 keys
    6 : {...} 4 keys
    7 : {...} 4 keys
    8 : {...} 4 keys
]
defaultCategory
default category key
Set property keys of data
string
thresholds
counter style property
value condition or key matching
array
RAW
thresholds : [
    0 : {...} 2 keys
    1 : {...} 2 keys
]
mini
boolean
false
disableGrouping
boolean
false

Stories

Example

  設定例

female

4

male

5
nameagegendercountry
9
grouped by gender

Array Data

  2次元配列を設定(defaultCategoryにはindexを設定可能)

USA

1

Canada

2

UK

2

Australia

1

Germany

1

France

2
0123
9
grouped by 3

Object Data

  Objectの配列を設定(Objectのkey数が異なっていてもカウントは可能)

undefined

4

male

3

female

2
nameage
9
grouped by gender

Thresholds

  集計した値やkey名でスタイル適用が可能

undefined

3

Canada

2

UK

2

Australia

1

Germany

1