Closed gittybobomber closed 1 year ago
Custom visuals run in iframe and by default downloading files is blocked for iframes in chromium-based browsers (see thread).
Saving files in Power BI Desktop doesn't support too.
Current workaround is displaying charts as image and manually save it, but it will work in web only.
That's really a pitty. As the Power BI Online export to pdf/ppt function does not export R visuals at all, I had hoped I could use the plotly camera icon to export visuals at least via clicking instead of writing export code. Why doesn't Power BI export R visuals in any way?
Export to pdf/ppt/email in services requires certification due to security requirements. I don't think Power BI team started to certify R visuals
@AleksSavelev This is still an issue, why did you complete this?
Has anyone found a workaround?
@Tesax123, This issue is not related to Tools and there has been no activity for almost two years. But you're right, it should be marked as not planned. Thank you!
I can successfully implement a Plotly visual as an Interactive Power BI Custom Visuals with R (thanks to https://towardsdatascience.com/interactive-power-bi-custom-visuals-with-r-a6a4ac998710) using the R script hosted here by Microsoft: https://github.com/microsoft/PowerBI-visuals-tools/blob/main/templates/visuals/rhtml/script.r
But when I click on the camera icon to export the visual via "download plot as a png", it says "Snapshop succeeded - newplot.png", but I cannot find that file anywhere on my computer.
It works neither in PowerBi Desktop nor Online, but the Plotly R script works without any problems in R Studio. In R studio the png is saved into my download folder by default and I can also specify the folder via config(fig, toImageButtonOptions = "folder/file.png"), cp. https://plotly.com/r/configuration-options/. But even this does not help when the plotly camera is clicked within PowerBI. Is there a fix or a workaround?