--- title: "Perspective - Pie Chart Scripting" --- # Perspective - Pie Chart Scripting > This page details the component specific events and functions available for Perspective's Pie Chart 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 slice in the chart. ### onChartMouseOver This event is fired when the user moves the mouse over a slice in the chart. ### onChartMouseOut This event is fired when the user moves the mouse out of a slice in the chart. ### Event Options The following event options are available for the Pie Chart's Component Events. #### event.color * Object Path * event.color * Type * String * Description * Color of the slice. #### event.componentIndex * Object Path * event.componentIndex * Type * Integer * Description * Zero-based index of the component. #### event.componentSubType * Object Path * event.componentSubType * Type * String * Description * Sub-type of the component: `pie`. #### event.componentType * Object Path * event.componentType * Type * String * Description * Type of element. #### event.data * Object Path * event.date * Type * Null * Description * Raw data item value. #### event.dataIndex * Object Path * event.dataIndex * Type * Integer * Description * Zero-based data of the slice. #### event.name * Object Path * event.name * Type * String * Description * Slice name, mapped to `data[].name`. #### event.seriesId * Object Path * event.seriesId * Type * Integer * Description * Series ID. #### 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: `pie`. #### event.value * Object Path * event.value * Type * Null * Description * Numeric value of the slice. ## Component Functions This component does not have Component Functions associated with it. ## Extension Functions This component does not have Extension Functions associated with it.