You’ll have to use system.util.invokeLater yourself, with a delay. Which will require you to nest most of the operations shown in a function definition.
Also, consider optimizing your script with temporary variables so you don’t repeatedly call getComponentForPath() on the same item. Also, in this event, system.gui.getParentWindow(event) returns the same value that is already supplied as event.source. Just use event.source.
Finally, reading tags via script in an event routine requires callouts to the gateway that can freeze your UI if there are any hiccups. Consider just using indirect bindings on the Easy Chart’s properties to connect them to the tags in the UDT.