Perspective - Heatmap Scripting
This page details the component-specific events and functions available for Perspective's Heatmap component. Right-click on the component or select Components from the Designer menubar to access the Configure Events and Configure Scripts popups.
Component Eventsβ
The Perspective Event Types Reference page describes all the possible component event types for Perspective components.
onChartClickβ
This event is fired when the user clicks on a cell in the chart.
event.colorβ
- Object Path
- event.color
- Type
- String
- Description
- Resolved color of the cell.
event.componentTypeβ
- Object Path
- event.componentType
- Type
- String
- Description
- Type of element clicked. For example,
series.
- Type of element clicked. For example,
event.dataβ
- Object Path
- event.data
- Type
- None
- Description
- Raw data item value. For example,
xIndex,yIndex,value.
- Raw data item value. For example,
event.dataIndexβ
- Object Path
- event.dataIndex
- Type
- Integer
- Description
- Zero-based data item index.
event.nameβ
- Object Path
- event.name
- Type
- String
- Description
- Category or data item name.
event.seriesIndexβ
- Object Path
- event.seriesIndex
- Type
- Integer
- Description
- Zero-based series index.
event.seriesNameβ
- Object Path
- event.seriesName
- Type
- String
- Description
- Series name.
event.seriesTypeβ
- Object Path
- event.seriesType
- Type
- String
- Description
- Series type. For example,
heatmap.
- Series type. For example,
event.valueβ
- Object Path
- event.value
- Type
- None
- Description
- Raw data item value. For example,
xIndex,yIndex,value.
- Raw data item value. For example,
onChartMouseOverβ
This event is fired when the user moves the mouse over a cell in the chart.
event.colorβ
- Object Path
- event.color
- Type
- String
- Description
- Resolved color of the cell.
event.componentTypeβ
- Object Path
- event.componentType
- Type
- String
- Description
- Type of element hovered.
event.dataβ
- Object Path
- event.data
- Type
- None
- Description
- Raw data item value. For example,
xIndex,yIndex,value.
- Raw data item value. For example,
event.dataIndexβ
- Object Path
- event.dataIndex
- Type
- Integer
- Description
- Zero-based data item index.
event.nameβ
- Object Path
- event.name
- Type
- String
- Description
- Category or data item name.
event.seriesIndexβ
- Object Path
- event.seriesIndex
- Type
- Integer
- Description
- Zero-based series index.
event.seriesNameβ
- Object Path
- event.seriesName
- Type
- String
- Description
- Series name.
event.seriesTypeβ
- Object Path
- event.seriesType
- Type
- String
- Description
- Series type.
event.valueβ
- Object Path
- event.value
- Type
- None
- Description
- Raw data item value. For example,
xIndex,yIndex,value.
- Raw data item value. For example,
onChartMouseOutβ
This event is fired when the user moves the mouse out of a cell in the chart.
event.colorβ
- Object Path
- event.color
- Type
- String
- Description
- Resolved color of the cell.
event.componentTypeβ
- Object Path
- event.componentType
- Type
- String
- Description
- Type of element the mouse left.
event.dataβ
- Object Path
- event.data
- Type
- None
- Description
- Raw data item value. For example,
xIndex,yIndex,value.
- Raw data item value. For example,
event.dataIndexβ
- Object Path
- event.dataIndex
- Type
- Integer
- Description
- Zero-based data item index.
event.nameβ
- Object Path
- event.name
- Type
- String
- Description
- Category or data item name.
event.seriesIndexβ
- Object Path
- event.seriesIndex
- Type
- Integer
- Description
- Zero-based series index.
event.seriesNameβ
- Object Path
- event.seriesName
- Type
- String
- Description
- Series name.
event.seriesTypeβ
- Object Path
- event.seriesType
- Type
- String
- Description
- Series type. For example,
heatmap.
- Series type. For example,
event.valueβ
- Object Path
- event.value
- Type
- None
- Description
- Raw data item value. For example,
xIndex,yIndex,value.
- Raw data item value. For example,
onChartHighlightβ
This event is fired when the user highlights a cell.
event.dataIndexβ
- Object Path
- event.dataIndex
- Type
- Integer
- Description
- Zero-based data item index.
event.seriesIndexβ
- Object Path
- event.seriesIndex
- Type
- Integer
- Description
- Zero-based series index.
event.typeβ
- Object Path
- event.seriesIndex
- Type
- String
- Description
- Type of event:
highlight.
- Type of event:
onChartDownplayβ
This event is fired when the user shrinks or condenses a cell.
event.dataIndexβ
- Object Path
- event.dataIndex
- Type
- Integer
- Description
- Zero-based data item index.
event.seriesIndexβ
- Object Path
- event.seriesIndex
- Type
- Integer
- Description
- Zero-based series index.
event.typeβ
- Object Path
- event.seriesIndex
- Type
- String
- Description
- Type of event:
downplay.
- Type of event:
Component Functionsβ
This component does not have Component Functions associated with it.
Extension Functionsβ
This component does not have Extension Functions associated with it.