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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.