Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hello,
I would like to add an external library ( from http://visjs.org/index.html#download_install ) so i followed the tutorial : create new external folder, add the js file inside and update the tsconfig.json.
In visual.ts I declare a global variable, because there is no d.ts file in the library, with this line :
declare var vis: any;
Then I want to call a function :
var items = new vis.DataSet([
{ id: 1, content: 'item 1', start: '2014-04-20' },
{ id: 2, content: 'item 2', start: '2014-04-14' },
{ id: 3, content: 'item 3', start: '2014-04-18' },
{ id: 5, content: 'item 5', start: '2014-04-25' }
]);But if I go to the internet explorer's console i can see an error :
Permission denied
So what's wrong ?
I also tried with another library which has a d.ts but even with the declaration file i have the same error.
Thanks
Solved! Go to Solution.
Based on my test, you could modify the .ts file as shown below.
private window: any;
constructor(options: VisualConstructorOptions) {
this.window = window;
var items = new this.window.vis.DataSet([
Based on my test, you could modify the .ts file as shown below.
private window: any;
constructor(options: VisualConstructorOptions) {
this.window = window;
var items = new this.window.vis.DataSet([
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |