Forum Discussion
AMsDeveloper
8 years agoFrequent Visitor
Include vis.js in custom visual causes error
Hi, I created an empty custom visualization and added vis.js but as soon as I add the line console.log(vis); The visualization does not work. The vis objects causes an error. Created ...
- 8 years ago
Please follow these steps to make vis.js working:
- Create a new JS file in src folder
- Put the folllowing code in the new JS file
var vis = window.vis || window.window.vis;
Include the new file into externalJs property of pbiviz.json right after node_modules/vis/dist/vis.js.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
v-chuncz-msft
8 years agoCommunity Support
v-viig
8 years agoCommunity Champion
Please follow these steps to make vis.js working:
- Create a new JS file in src folder
- Put the folllowing code in the new JS file
var vis = window.vis || window.window.vis;
Include the new file into externalJs property of pbiviz.json right after node_modules/vis/dist/vis.js.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals