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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! 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
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.