Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to embed interactive plots?

dom_layfield
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 20, 2019

I'm trying to figure out a way to embed an interactive plot (created with plotly/python) on a Confluence page.  

We use the Confluence cloud service, so need to host the plot on the Confluence server. 

What I'm currently trying is this: I save the plot as an html file.  Then I upload the plot.html file to Confluence as an attachment.   Then I create an iframe macro in the Confluence page, and paste the URL of the attachment into the iframe.

But when I publish the page and view it, the browser downloads the html code for the plot, instead of displaying it.   After some investigation, what seems to be happening is that when the Atlassian server responds to an http request for the attachment, it sets the "content-disposition" field to "attachment", which tells the browser to download the file, and not try to render it.

If the html file for the plot is hosted elsewhere (i.e. on servers that don't set content-disposition to 'attachment'), embedding the plot works just fine.  e.g. https://plot.ly/~elizabethts/9.embed

Can anyone suggest a workaround to this?  Is there a way, for example, to tell Confluence NOT to set the content-disposition?   

2 answers

0 votes
Tibor Hegyi _META-INF_
Atlassian Partner
November 24, 2015

There is an addon that reveals all the secrets of Confluence permissions and restrictions: https://marketplace.atlassian.com/plugins/hu.metainf.plugin.confluence.ultimate-permission-manager/server/overview

It allows you to verify who can or cannot see what (spaces, pages, restricted pages) and understand the "why" as it gives you detailed explanations of direct or indirect permissions effective in the system.

0 votes
Stephen Deutsch
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
November 20, 2015

No, only a confluence admin can see all restricted pages automatically.  However, a space admin can remove restrictions from pages: https://confluence.atlassian.com/doc/page-restrictions-139414.html and then see them, but then it will be obvious that someone did something.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events