kor TürkçeGitHub

Pivot

Summarizes records by rows and columns.

kor/ui/PivotSource

When to use

  • Use it for up to several thousand records already in the browser.

Examples

Sales by region

Loading the example

<k:Pivot data="{/sales}" rows="region,product" column="year" value="amount" unit="TRY" rowLabel="Region" expandedLevels="2" cellPress=".onPress"/>

API

Properties

NameTypeDefaultDescription
dataanynullArray of records
rowsstring[][]Row fields, outermost first
columnstringColumn field
valuestringField to aggregate
aggregatestringsumsum, count, avg, min or max
decimalsint0Decimal places
unitstringUnit
labelstringAccessible name
rowLabelstringHeading of the first column
expandedLevelsint1Levels visible at first. 1 shows only the first level
heightstringHeight. Defaults to the content

Events

NameTypeDescription
cellPressfilters: object
value: any
A cell was pressed. Provides field and value pairs

Related

DataGridHeatmap