Search code examples
powerbivisualizationpowerbi-desktopvegadeneb

Vega via Deneb in Power BI sankey chart grouped source and target names


I d like to create a sankey chart chart using vega in Deneb. I found an article online and I have the following code, but I would like to show the countries grouped like this, with gaps in between, but no gaps between the same country

currently my result is like this, I could not add the gap correctly on both sides; only one side is grouped correctly

here is my code..

https://vega.github.io/editor/#/gist/a6c6f4b41a20fd763d08ed519ba1fcda/Vega_Sankey_Chart_with_issue.json

can you please help me . Thank you.


Solution

  • Vega sankey available here which can be used in Deneb and Power BI: https://github.com/PBI-David/Deneb-Showcase?tab=readme-ov-file#sankey-chart

    enter image description here