Logo

The Data Daily

HTML widgets in Power BI | R-bloggers

HTML widgets in Power BI | R-bloggers

HTML widgets in Power BI
Posted on November 23, 2022 by Stéphane Laurent in R bloggers | 0 Comments
[This article was first published on Saturn Elephant , and kindly contributed to R-bloggers ]. (You can report issue about the content on this page here )
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
It is possible to include a htmlwidget in a Power BI report, such as a plotly graphic.
Setting up an environment
You first have to follow the first three steps of this tutorial :
install Node.js;
create and install a certificate;
install the npm package powerbi-visuals-api.
For Windows, you can download a portable version of Node.js on the nodejs.org website: choose the 64-bit zip, unzip it in a folder and set this folder in your Windows path.
Follow the tutorial for steps 2 and 3. Note that you have to perform step 3 only once, there’s no need to generate a new certificate for each visual you will create.
For step 4, run npm install -g powerbi-visuals-api in a terminal.
Example
Let’s assume you want to render the interactive graphic produced by this code:
library(plotly) gg

Images Powered by Shutterstock