Perspective - Bar Scripting
This page details the component specific events and functions available for Perspective's Sankey 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 node or link in the chart.
event.colorβ
- Object Path
- event.color
- Type
- String
- Description
- Color of the clicked element.
event.componentTypeβ
- Object Path
- event.componentType
- Type
- String
- Description
- Chart component type (always
seriesfor chart elements).
- Chart component type (always
event.dataβ
- Object Path
- event.data
- Type
- Null
- Description
- Raw data item value, full node or link object.
event.dataIndexβ
- Object Path
- event.dataIndex
- Type
- Integer
- Description
- Zero-based index of the clicked element.
event.dataTypeβ
- Object Path
- event.dataType
- Type
- String
- Description
- Will be
nodewhen a node was clicked andedgewhen a link was clicked.
- Will be
event.nameβ
- Object Path
- event.name
- Type
- String
- Description
- Node name (maps to
data.nodes[x].name). Empty for edge clicks.
- Node name (maps to
event.seriesIndexβ
- Object Path
- event.seriesIndex
- Type
- Integer
- Description
- Zero-based series index.
event.seriesNameβ
- Object Path
- event.seriesName
- Type
- String
- Description
- The name of the series.
event.seriesTypeβ
- Object Path
- event.seriesType
- Type
- String
- Description
- Series type:
sankey.
- Series type:
event.valueβ
- Object Path
- event.value
- Type
- Null
- Description
- Numeric value of the clicked element.
onChartMouseOverβ
This event is fired when the user moves the mouse over a node or link.
event.colorβ
- Object Path
- event.color
- Type
- String
- Description
- Color of the hovered element.
event.componentTypeβ
- Object Path
- event.componentType
- Type
- String
- Description
- Chart component type.
event.dataβ
- Object Path
- event.data
- Type
- Null
- Description
- Raw data item value.
event.dataIndexβ
- Object Path
- event.dataIndex
- Type
- Integer
- Description
- Zero-based index of the hovered element.
event.dataTypeβ
- Object Path
- event.dataType
- Type
- String
- Description
- Will be
nodewhen hovering a node andedgewhen hovering a link.
- Will be
event.nameβ
- Object Path
- event.name
- Type
- String
- Description
- Node name. Empty for edge hover.
event.seriesIndexβ
- Object Path
- event.seriesIndex
- Type
- Integer
- Description
- Zero-based series index.
event.seriesNameβ
- Object Path
- event.seriesName
- Type
- String
- Description
- The name of the series.
event.seriesTypeβ
- Object Path
- event.seriesType
- Type
- String
- Description
- Series type:
sankey.
- Series type:
event.valueβ
- Object Path
- event.value
- Type
- Null
- Description
- Numeric value of the hovered element.
onChartMouseOutβ
This event is fired when the user moves the mouse out of a node or link.
event.colorβ
- Object Path
- event.color
- Type
- String
- Description
- Color of the element.
event.componentTypeβ
- Object Path
- event.componentType
- Type
- String
- Description
- Chart component type.
event.dataβ
- Object Path
- event.data
- Type
- Null
- Description
- Raw data item value.
event.dataIndexβ
- Object Path
- event.dataIndex
- Type
- Integer
- Description
- Zero-based index of the element.
event.dataTypeβ
- Object Path
- event.dataType
- Type
- String
- Description
- Will be
nodewhen leaving a node andedgewhen leaving a link.
- Will be
event.nameβ
- Object Path
- event.name
- Type
- String
- Description
- Node name. Empty for edge mouseout.
event.seriesIndexβ
- Object Path
- event.seriesIndex
- Type
- Integer
- Description
- Zero-based series index.
event.seriesNameβ
- Object Path
- event.seriesName
- Type
- String
- Description
- The name of the series.
event.seriesTypeβ
- Object Path
- event.seriesType
- Type
- String
- Description
- Series type:
sankey.
- Series type:
event.valueβ
- Object Path
- event.value
- Type
- Null
- Description
- Numeric value of the element.
Component Functionsβ
This component does not have Component Functions associated with it.
Extension Functionsβ
This component does not have Extension Functions associated with it.