Embedding Dashboards using an iFrame
You can use iFrames to embed Dashboards into the HTML document of your choice, offering an easy solution to displaying your dashboards in other pages or applications external to Zoomdata. Zoomdata's automatically generated iFrame code allows users without access to your Zoomdata environment to view and interact with dashboards. There are two options for embedding dashboards from which to select: Interative and Non-Interactive. Interactive allows users to click on elements within the dashbord. Non-Interactive provides a static snapshot of the dashboard.
Steps for locating the iFrame code for embedding
- In the dashboard that you want to share, click the Share icon.
- Select the type of dashbaord you want to embed: Interative or Non-Interactive .
- Copy the Embed code, which is an HTML iFrame element.
- Add the embed code to your application's code. Zoomdata has already included the necessary parameters to allow public viewing of the dashboard.
The following example shows code that is being used to embed a dashboard view in an iFrame.
yourserveris replaced with the URL for your server.
0987654321is a id unique to the chart or dashboard being rendered.
1234567890is replaced with your security key. For information about generating an security key, see Generating a Security Key .
You can style the iFrame as with any other iFrame.