I have a public plot that I’m currently embedding within Qualtrics using an iframe. But as the data is somewhat personally identifiable, I’d rather host it privately. So I downloaded the zip file and unpacked its four files - figure.js, plot.html, plot.png and plotly.min.js - within Qualitrics’ file library (https://www.qualtrics.com/support/survey-platform/account-library/files-library/).
<iframe frameborder=”0” seamless=”seamless” scrolling=”no” src=”URL OF HTML FILE IN QUALTRICS FILE LIBRARY”> </iframe>
Thinking that maybe files in Qualtrics’ file library can’t be directly linked, I tried hosting them on Google Drive with public sharing, but that didn’t work either. I also tried get the “paste the HTML” method, but it doesn’t work because, again, Qualtrics doesn’t permit <script>.
Any ideas? Maybe somehow including (perhaps after editing) the figure.js script into Qualtrics using the “Add Javascript” function in Qualtrics linked above?
Edit: I think I have it figured out. Both Qualtrics and Google Drive seem to use dynamic file naming, making directly linking a file difficult if not impossible. Then I tried this old Lifehacker trick for serving files from Dropbox and lo and behold it worked. Curiously, the filename used in the iframe has to be .html rather than .embed. It’s not an ideal solution, as the plot is still publicly accessible, at least its a start in the right direction.