Forum Discussion
Anonymous
9 years agoNot applicable
Custom visual with external library
I am trying to develop a custom visual using d3-hierarchy (https://github.com/d3/d3-hierarchy). I've installed both the library and the typings using npm into the node_modules folder, and added the f...
kuldeep_kumar
9 years agoAdvocate I
If I am not wrong, you don't need to import the module.
Just define lib in global dependencies in typings.json as it is done here for d3 .
To use this library in your file , define variable with same name where ever you want to use this lib.
- Anonymous9 years agoNot applicable
Thank you for your answer. I don't understand yet what string I have to enter. I included a screenshot of my typings.json
I've looked into the github repository, but the string for d3 doesn't match the repositories structure, so I'm at a bit of a loss here :/
- kuldeep_kumar9 years agoAdvocate I
I hope this might help.