NOTE: You can only embed custom visualization in white labeled organization.
You store the custom visualization script on a remote location (i.e. S3 bucket) where you can execute it and access it from the browser.
You can embed a custom visualization in a Dashboard in a white labeled organization the same way you embed any other custom HTML code.
CORS must be allowed for your Organization. Feel free to open a ticket with GoodData Support and we will get this set up for you. Once CORS is set up you can place other visualizations in your S3 bucket.
Let’s asumme you are using Amazon S3 to store custom visualizations.
1) Add following line of code to set your custom GoodData domain.
2) Put the custom visualization code to the web server (your Amazon S3 bucket) where it will be executed.
3) Click Edit > Web Content on a dashboard to embed the visualization.
To use custom visualization embedded in Dashboard, you don’t need to set up login & password and call the .login
method in your script. The visualization is executed in the same browser so standard cookie based authentication is used to call the GoodData backend.
You don’t need to have CORS allowed when you are running the script using localhost
and grunt
. You can automatically access secure.gooddata.com or any server that you choose. See the diagram to understand the difference. Remember that you must use the .login
method to call the GoodData backend.