Easy chart as part of template on the popup

There is a template based on UDT tag. Template includes Easy Chart for analog trending. Template is used on the popup. How to configure Easy Chart in the template for dynamic reference on the popup in runtime?

https://www.inductiveuniversity.com/video/parameterized-popup-window-and-udts/7.9?r=%2Fvideo%2Fsearch%2F%3Fq%3Dpopup%20chart%26checked_topics%3D

https://www.inductiveuniversity.com/video/indirect-easy-chart/7.9?r=%2Fvideo%2Fsearch%2F%3Fq%3Dindirect%20easy%20chart%26checked_topics%3D