--- title: Event handler in the Data visualization component description: A component triggers an event when a certain condition is met or on user interaction. The event can be used to execute an action through a code on a third-party webpage. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/customer-service-management/we-data-viz-event-handler.html release: australia topic_type: reference last_updated: "2026-03-12" reading_time_minutes: 1 breadcrumb: [Web Embeddables event handlers, Web Embeddables reference, Reference, Customer Service Management] --- # Event handler in the Data visualization component A component triggers an event when a certain condition is met or on user interaction. The event can be used to execute an action through a code on a third-party webpage.
Event handler Description Payload
**NOW\_VIS\_WRAPPER\#PROPERTY\_OVERRIDE** This event is dispatched when the visualization overrides its property.For example, when the user selects a different group by from the alternative group by selection. `properties`
**NOW\_VIS\_WRAPPER\#SELECTED** This event is dispatched when the user selects order-selects element on data visualizations, typically to filter other content on the page. `title, type, isSelected, params, data`
**NOW\_VIS\_WRAPPER\#CLICKED** This event is dispatched when the visualization is selected. `title, type, params, data`
**Related topics** [Configure the Data visualization component instance](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/customer-service-management/customer-self-service-and-omnichannel-engagement/config-data-viz-comp.md) [Embed the Data visualization component instance on the third-party website](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/customer-service-management/customer-self-service-and-omnichannel-engagement/embed-data-viz-comp.md) [Component properties for the Data visualization](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/customer-service-management/we-data-viz-comp-prop.md) [Sample code for the Data visualization component](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/customer-service-management/customer-self-service-and-omnichannel-engagement/we-data-viz-sample-code.md)