Perspective doesn't allow you to supply your own javascript in the designer. Only a component supplied by a 3rd-party module can add browser-side javascript.
For ApexCharts, this has been done by Kyvis Labs:
Perspective doesn't allow you to supply your own javascript in the designer. Only a component supplied by a 3rd-party module can add browser-side javascript.
For ApexCharts, this has been done by Kyvis Labs: