Heatmap
Shows where values are dense.
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>sap.ui.define(["sap/ui/core/mvc/Controller", "kor/ui/Toast"], (Controller, Toast) => Controller.extend("sample.Defects", {
onPress(event) {
Toast.show(String(event.getParameter("value")));
}
}));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
| Name | Type | Default | Description |
|---|---|---|---|
label | string | Accessible name | |
decimals | int | 0 | Decimal places |
unit | string | Unit | |
rowOrder | string[] | [] | Row order. Defaults to data order |
columnOrder | string[] | [] | Column order. Defaults to data order |
Aggregations
| Name | Type | Description |
|---|---|---|
cells | HeatCell[] | Cells |
Events
| Name | Type | Description |
|---|---|---|
cellPress | row: stringcolumn: stringvalue: float | A cell was pressed |
HeatCell
A heatmap cell.
Properties
| Name | Type | Default | Description |
|---|---|---|---|
row | string | Row | |
column | string | Column | |
value | float | 0 | Value |
text | string | Tooltip |