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]
- alpayne7 years agoFrequent Visitor
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]