The Heat Map component for Retool Apps
A content area to display heat maps.
The Heat Map component renders data on an x-axis and y-axis, with a value for each point on the map. Heat Map is useful for visualizing intensity and identifying patterns or correlations.
For more information about using the Heat Map component, refer to the charts guide.
Properties
All properties for this object with supported data types or values. You can write JavaScript almost anywhere in Retool to manipulate or read property values.
chartType
The type of chart to display.
Type | string | ||||||||||||||||||||||||||||||||||||||||||
Format | Plain Text | ||||||||||||||||||||||||||||||||||||||||||
Mutability |
| ||||||||||||||||||||||||||||||||||||||||||
Allowed Values |
|
Examples
clearOnEmptyData
Whether to clear the chart when the data is empty.
Type | boolean | ||||
Format | True/False | ||||
Mutability |
| ||||
Default |
|
Examples
colorArray
A list of colors to use when colorInputMode
is colorArray
.
Type | array | ||||
Format | Color | ||||
Array values | string | ||||
Mutability |
|
Examples
colorArrayDropDown
A list of colors to use when colorInputMode
is colorArrayDropDown
.
Type | array | ||||
Format | Color | ||||
Array values | string | ||||
Mutability |
|
Examples
colorInputMode
The mode for the color input.
Type | string | ||||||||||||
Format | Plain Text | ||||||||||||
Mutability |
| ||||||||||||
Allowed Values |
| ||||||||||||
Default |
|
Examples
data
The data.
Type | string | number | boolean | object | array | ||||||
Format | Custom data | ||||||
Mutability |
|
datasource
The source data when using UI Form.
Type | array | ||||
Array values | object | ||||
Mutability |
|
datasourceMode
The data source mode.
Type | string | ||||||
Mutability | Read-only | ||||||
Allowed Values |
|
gradientColorArray
A list of colors to use when colorInputMode
is gradientColorArray
.
Type | array | ||||
Format | Color | ||||
Array values | string | ||||
Mutability |
|
heatmapShowScale
Whether to display the color scale legend.
Type | boolean | ||||
Format | True/False | ||||
Mutability |
| ||||
Default |
|
Examples
hidden
Whether this object is hidden from view.
Type | boolean | ||||||
Format | True/False | ||||||
Mutability |
| ||||||
Default |
|
Examples
id
The unique identifier (name).
Type | string | ||||
Format | Plain Text | ||||
Mutability |
| ||||
Default |
|
Examples
isHiddenOnDesktop
Whether to show or hide this object in the desktop layout.
Type | boolean | ||||
Format | True/False | ||||
Mutability |
| ||||
Default |
|
Examples
isHiddenOnMobile
Whether to show or hide this object in the mobile layout.
Type | boolean | ||||
Format | True/False | ||||
Mutability |
| ||||
Default |
|
Examples
legendPosition
The position of the legend.
Type | string | ||||||||||||||||||
Mutability |
| ||||||||||||||||||
Allowed Values |
|
maintainSpaceWhenHidden
Whether to take up space on the canvas if hidden
is true
.
Type | boolean | ||||
Format | True/False | ||||
Mutability |
| ||||
Default |
|
Examples
margin
The amount of margin to render outside.
Type | string | |||||||||
Format | Plain Text | |||||||||
Mutability |
| |||||||||
Allowed Values |
| |||||||||
Default |
|
Examples
rangeSlider
Whether to display a range slider.
Type | boolean | ||||
Mutability |
|
showInEditor
Whether the component remains visible in the editor if hidden
is true
.
Type | boolean | ||||
Format | True/False | ||||
Mutability |
| ||||
Default |
|
Examples
toolbar
The toolbar configuration.
Type | object | ||||
Mutability |
|
Object Properties
Methods
JavaScript API methods for this object. You can write JavaScript almost anywhere in Retool and use methods to manipulate data and property values.
heatMap.scrollIntoView()
Scrolls the canvas or parent container so that the selected component appears in the visible area.
heatMap.scrollIntoView(options)
Parameters
Examples
heatMap.setHidden()
Set the hidden
value to toggle whether the component is visible. Defaults to true
without a parameter.
heatMap.setHidden(hidden)
Parameters
Examples
Events
Events triggered by user interactions. You can configure event handlers in the IDE to trigger queries or other actions in response to events.
Event | Description |
---|---|
Clear | A value is cleared. |
Hover | An item is hovered over. |
Legend Click | A legend item is clicked or pressed. |
Legend Double Click | A legend item is double-clicked or pressed. |
Select | A value is selected. |
Unhover | An item is no longer hovered over. |