--- title: "Perspective - Heatmap Scripting" --- # 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](appendix/reference-pages/perspective-event-types-reference.md) 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`. #### event.data * Object Path * event.data * Type * None * Description * Raw data item value. For example, `xIndex`, `yIndex`, `value`. #### 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`. #### event.value * Object Path * event.value * Type * None * Description * Raw data item value. For example, `xIndex`, `yIndex`, `value`. ### 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`. #### 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`. ### 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`. #### 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`. #### event.value * Object Path * event.value * Type * None * Description * Raw data item value. For example, `xIndex`, `yIndex`, `value`. ### 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`. ### 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`. ## Component Functions This component does not have Component Functions associated with it. ## Extension Functions This component does not have Extension Functions associated with it.