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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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