Forum Discussion
Network (force-directed) visual using power BI d3 custom visual
Hi,
Have you already checked how ForceGraph is implemented?
Please note that source code for this visual is public, feel free to fork and modify it for your needs.
Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
[email protected]
Thank you for you reply. I had already looked at the Force Graph Power BI Visual, but it didn't suit my needs. I feel changing the source code of this visual would be whole heap more complicated than just trying to get my simple script to run in the Power Bi D3 visual. My thinking was, if I can implement the very simply example I outlined then once it was working I could adpated it to display a much more complicated scenario. The issue I'm having I think is to do with how I get Power BI to recognise the input data.
- alpayne7 years agoFrequent Visitor
Sorry I should have also said. I'm only using Power BI Desktop, hence adapting the code will not be possible.
- v-evelk7 years agoMicrosoft Employee
Force graph uses standard d3 features for rendering.
You can use the repo to analyze how to build it.
Regarding inputs, you should look at the documentation.
There are several pages that can help you in this:
https://microsoft.github.io/PowerBI-visuals/docs/concepts/capabilities/
https://microsoft.github.io/PowerBI-visuals/docs/concepts/dataviewmappings/
https://microsoft.github.io/PowerBI-visuals/docs/concepts/objects-and-properties/
There is no so big difference where are you use your visual, the conception is the same.
Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
[email protected]- alpayne7 years agoFrequent Visitor
Once again thank you for replying and I'm sorry if I'm being painful, but I currently can't use the developer option as I only have Power BI Desktop. I'm in the proccess of getting my company to pay for a subscription to Power BI Pro Service, which would then allow me to use developer functionailty. So unti that happens I'm left with the Power BI D3 visual which I imported from the store front. I have gone through some tutorials on how to implement this visual and as I said I think that the error, although the code doesn't throw any errors, lies with how I have defined my data with the pbi.dsv object. The code works fine outside of Power BI and it appears to me to just be a simple matter seems of tweeking the code I have to enable it to run, but I'm just not sure how to achieve this (I have been trying for a long time on this and was hoping for some fresh ideas).
Maybe I will just have to wait until we pay for the Power BI Pro (Service) and then modify the Force Graph Visual to meet my needs. It might just not be possible to use the Power BI D3 visual to display my code.