Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Dear All,
Brand new to developing for PBI and pretty new to JS / D3 but have a few extensions written and running for qlikview, but this is probably a basic question.
I wanted to try and convert one of these to work with PBI but I get errors and I suspect as using the typings thing with PBI means I have the latest version (4) or D3?
I know the extension works on v3, so can I somehow use this instead? I tried packaging up the d3v3.js and loading that but obviously it didn't work.
I assume typings is used so that you don't have to package the additional js files and everyone is working on the same version?
Based on my research, you may download the external library of your choice and add the library to your tsconfig.json file.
https://github.com/Microsoft/PowerBI-visuals/blob/master/Tutorial/ExternalLibraries.md
Hi Sam,
Thank you, I am currently beating my head on the desk trying to figure this stuff out!
I thought developing for Qlikview was bad but this seems way OTT and undocumented.
I had tried adding it, but then just got a bunch of D3 namespace doesn't exist kind of errors. I've figured out (I think) that some of the typings D3 stuff is just a bit different so for example D3.event.foo becomes (d3.event as event).foo etc
I did also find this blog which seems useful as he's managed to store the D3 extension (Rather than library) as separate code and then loads it, however I suspect it might give the same issues.. not had chance to test it yet!
http://blog.jongallant.com/2016/09/powerbi-custom-visual-from-existing-d3.html