- Install an external JavaScript library by using any package manager (npm, yarn, etc.)
- Include a path of the library to the
externalJSproperty of thepbiviz.json
Please pay attention to this if you'd like to add typings for your JavaScript file to get intellisense and compile time safety on them.
npm install d3@4.9.1 --save- Including
d3to thepbiviz.json
{
"visual": {...},
"apiVersion": ...,
"author": {...},
"assets": {...},
"externalJS": [
"node_modules/d3/d3.min.js"
],
"style": ...,
"capabilities": ...,
"dependencies": ...
}Please visit this page to find the real example.
- Install an external CSS framework by using any package manager (npm, yarn, etc.)
- Include the
importstatement to the.lessfile of the visual
npm install bootstrap --save- Include the
importstatement to thevisual.less
@import (less) "node_modules/bootstrap/dist/css/bootstrap.css";Please visit this page to find the real example.