Step 1: copy the example script you want to try.
Step 2: add a Custom widget to your dashboard. *Use the 'Add Widget' button in the upper right of your dashboard.
Step 3: paste the example script in 'Script' section.
Step 4: select the data source(s) you want to show.
Step 5: hit 'Submit' and see your data on the widget.
You can sign up for a free Portals account at https://portals.exosite.com to use the Custom Widget and these example scripts. You can also use these to create custom Domain Widgets in your Exosite whitelabel subdomain >my company<.exosite.com.