Maybe you want to do some date formatting with moment.js or include a completely different charting library for your scripted charts, like a timeline from vis.js.

This is possible with xCharts easily, by creating Resources, and then using them in your layout scripts.

In order to do that, go to the Resources page and click the "Create Resource" button. Here you can choose between Javascript and CSS files, then copy-paste the library source code and then save it.

Now when editing a Javascript layout, you will notice a new section called "Resouces", where you can check the checkboxes for the resources you want to use in this script.