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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
vincentd
New Member

Custom visual with external library

Hello,

 

I try to create my first custom visual on power pi, using highcharts library

 

I've tried to install it from npm (npm install), try to use typings (typings install) but when I start my visual, "Hightcharts" is undefined (error on my visual.ts).

 

Has anyone ever used this library to enrich power bi charts?

 

Thanks

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@vincentd,

 

You could add a let statement as shown below.

let Highcharts = (<any>window).Highcharts;
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@vincentd,

 

You could add a let statement as shown below.

let Highcharts = (<any>window).Highcharts;
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

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.