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:
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:
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
Post a Comment