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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. 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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.

Top Kudoed Authors