node.js - Including other JavaScript libraries in custom Power BI visual -


could please explain how done? want use d3 library don't know how use within visual.ts file. i've installed npm , added externaljs part of pbiviz.json, there else need configure before can include , use in visual.ts?

when add import * d3 "../node_modules/d3"; top of visual.ts following error: enter image description here

i've tried import * d3 "d3"; no avail.

i've looked through source of example custom visual (here) couldn't find kind of importing/including... in barchart.ts start using d3 straight away, bit confusing. when try get: enter image description here

could please show me i'm doing wrong?

did install typings?: there draft of docs, how install typings of d3 library using npm https://github.com/microsoft/powerbi-visuals/pull/186/files

or can use old way install typings using typings utils: https://github.com/microsoft/powerbi-visuals/blob/master/tutorial/typings.md


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -