kor TürkçeGitHub

Heatmap

Shows where values are dense.

kor/ui/HeatmapSource

When to use

  • Use it for hours and days, plants and defects, or risks.

Examples

Defects by shift

Loading the example

<k:Heatmap label="Defects" cells="{path: '/cells', templateShareable: false}" cellPress=".onPress"><k:HeatCell row="{r}" column="{c}" value="{v}"/></k:Heatmap>

Around zero

Loading the example

<k:Heatmap decimals="1" unit="%" cells="{path: '/cells', templateShareable: false}"><k:HeatCell row="{r}" column="{c}" value="{v}"/></k:Heatmap>

API

Properties

NameTypeDefaultDescription
labelstringAccessible name
decimalsint0Decimal places
unitstringUnit
rowOrderstring[][]Row order. Defaults to data order
columnOrderstring[][]Column order. Defaults to data order

Aggregations

NameTypeDescription
cellsHeatCell[]Cells

Events

NameTypeDescription
cellPressrow: string
column: string
value: float
A cell was pressed

HeatCell

A heatmap cell.

Properties

NameTypeDefaultDescription
rowstringRow
columnstringColumn
valuefloat0Value
textstringTooltip

Related

PivotTrend