XYChart - Selection Change Event?

Is there a way to fire an event when the selection changes on the Perspective XYChart when “selection” is enabled? It seems like the “onSelect” event is not working. I have the XYChart and a table, and I want both selections to be linked (i.e. if the user selects a column from the XYChart, it selects the matching row in the table and vise-versa).

Hi Joe,

onSelect() wont apply here since that only works for basic text components:


Instead, try creating a Property Change Script against selection.data itself. This will allow you to review the entire json object being created/modified per selection: