API
API
Options
FormatterStatsOptions

FormatterStatsOptions

formatterStats 옵션.

모든 속성이 생략되면 cellScope='value', compareScope='all', 합계/정렬 없이 min/max/count만 계산된다.

Options

cellScope: 'value' | 'subtotal' | 'total' | 'all' | Array (opens in a new tab)<'value' | 'subtotal' | 'total'>

통계에 포함할 셀 레벨. 기본 'value'.

default: undefined

compareScope: 'all' | 'row' | 'column' | 'level' | 'rowGroup' | 'columnGroup' | Array (opens in a new tab)<'row' | 'column' | 'level' | 'rowGroup' | 'columnGroup'>

그룹 분리 축. 기본 'all'(분리 없이 전체 1개 그룹).

default: undefined

withSorted: boolean (opens in a new tab)

정렬된 값 배열(percentile/rank 계산용)이 필요하면 true. withSum도 자동 포함.

default: undefined

withSum: boolean (opens in a new tab)

합계/평균이 필요하면 true.

default: undefined