This is how to publicly embed the visualization for a Look in an
<iframe> so it can be displayed in a separate HTML document or as a link by itself in the browser.
- Your Looker Administrator must have enabled Public Access for you to do this.
- You must be in production mode in order to get the embed URL for a Look as a table or visualization.
##How to Embed a Visualization Into an iframe
If you have already created a visualization for the Look that you would like to embed, open Spaces, select the Space your Look is in, and click the gear to the right of your Look name. In the menu that opens, click Edit. Skip to step 5 of these directions to continue.
If you have not yet created the visualization you would like to embed, open Spaces, select a Space, and open the Look you wish to embed.
Open the Visualization section of your Look, and modify the visualization to your liking.
Go to the Edit page for your Look. You can do this directly from Explore by clicking the gear in the upper left and then selecting Schedule. Hit Save and Schedule in the window that pops up.
Enable Public Access for the Look by checking the Public Access box. Hit Save.
Note: If you don’t see the Public Access checkbox, refer to Why can’t I see the make public option for my Look?
Copy the link that appears in the Embed Visualization section. You can also embed a table by copying the link in the Embed Data Table section.
Paste this inline
<iframe>into the HTML code where you would like the visualization to appear.
##Viewing an Embedded Visualization without an iframe
You can also view the embedded visualization without inserting it via an html iframe by pasting the embed link in your browser. For example, if your iframe link looks like this:
<iframe src="https://learn.looker.com/embed/public/CNdbvTys8ZVgQn423Sf4y2GYhy6b6522" width="600" height="338" frameborder="0"></iframe>
You can view just the embedded visualization by pasting just the URL into your browser:
This will look something like: