Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello,
In this question, the OP is able to see the DOM of a custom visual in an iframe. How can we do that? I'm doing custom R HTML visuals with pbiviz.
Solved! Go to Solution.
@Anonymous ,
I am developing a custom visualization from scratch. In order to run and view your visualization that's under development, there are quite a few steps you go through to "link" your local development environment to powerbi.com. The viewing of the custom visualization is done by editing a powerbi file that has been uploaded and adding the "developer visual".
To see the DOM of your R visual, I don't see a reason why you couldn't upload your Power BI analysis file to your workspace on powerbi.com. Viewing your visualization there, will allow you to use the browsers developer tools to inspect the DOM and even see possible errors in the console.
Hope this helps. I know that's a lot of work to see the DOM, but there is no way of viewing it that I know of in the desktop software.
William
Ah ok, I can open the report on app.power.bi.com, and here I have "Inspect element".
@Anonymous ,
I am developing a custom visualization from scratch. In order to run and view your visualization that's under development, there are quite a few steps you go through to "link" your local development environment to powerbi.com. The viewing of the custom visualization is done by editing a powerbi file that has been uploaded and adding the "developer visual".
To see the DOM of your R visual, I don't see a reason why you couldn't upload your Power BI analysis file to your workspace on powerbi.com. Viewing your visualization there, will allow you to use the browsers developer tools to inspect the DOM and even see possible errors in the console.
Hope this helps. I know that's a lot of work to see the DOM, but there is no way of viewing it that I know of in the desktop software.
William
To add to this, R visuals are a little different to regular (TypeScript) visuals. There is boilerplate TypeScript code that hosts the visual, just like a regular one, but the R code is delegated elsewhere (local R on your machine, or a MS-hosted version of R in the Service).
With the visual DOM, you can indeed inspect the visual in the Service using your browser tools.
For a standard R visual, this is a static image that is base64 encoded, e.g.:
For an RHTML visual, Power BI will convert the resulting respons from the R interpreter and add the generated HTML to the DOM, e.g.:
Daniel
Proud to be a Super User!
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
8 | |
7 | |
2 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
4 |