Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
kakkaroolari
Frequent Visitor

How to add external javascript src=blocks to custom visual iframe

I'm developing a custom visual based on the Circle card example here:

https://github.com/microsoft/PowerBI-visuals-circlecard

 

Now, I'm using an external lib from npm that has an run time "dependency" to another .js lib that is supposed to be loaded thru https.

 

I need the following HTML element to appear inside my visuals sandbox iframe

 

<script src="https://taa.dii.da.daa/<external.js>" />

 

How can I do that?

 

Puttings it to the pbiviz.json externalJs did not work. Or do I, in addition to that import it in the visual.ts somehow?

 

This <external.js> file is not in npm, and the licence dictates that it shall not be downloaded and used locally as a copy.

2 REPLIES 2
Anonymous
Not applicable

I want to call the nivo react chart library in the powerbi react visual. I also have seen the documentation. there, they said, you can't call the external js file in the powerbi api 3.0. or above. Any of the way to use react chart library with the latest powerbi library. Thanks

kakkaroolari
Frequent Visitor

Pop-up.

Is it true that nobody knows how to do this? Is there any other place people can ask these things?

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.