You should be able to create any kind of visualization with APIs in Java Script. Here is our help page with an example .
You only need to keep in mind that when developing a Mashup, the code pre-created for you. When creating objects on the fly you need to make sure you are authenticated to the server and can open the app, so you can create the visualization.
To help users find verified answers, please don't forget to mark a correct resolution or answer to your problem or question as correct.