Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hi,
I just developed my first custom visual (in React) according to the tutorial: https://learn.microsoft.com/en-us/power-bi/developer/visuals/create-react-visual
But when no data is bound, I thought a default landing page (or watermark) should be shown ?
I just see a blank visual.
Questions:
I tried setting these values in the capabilities.json as suggested in some docs and posts:
"supportsLandingPage": true,
"supportsEmptyDataView": true
But nothing changes.
Also this page doesn't give me a working code example for a custom landing page: https://learn.microsoft.com/en-nz/power-bi/developer/visuals/landing-page
Maybe someone has a other example ?
Thanks,
Markus
Solved! Go to Solution.
Hi @v-shex-msft ,
unfortunately that is just a overview documentation.
I just found these 2 repos on github with example code. This now worked for me.
https://github.com/gramener/comicgen-powerbi/blob/master/src/visual.ts
https://github.com/liprec/powerbi-hierarchySlicer/blob/main/src/graphics.ts
Just look for all places in the code mentioning "landingpage".
Still I also hoped there might be a default landing page / watermark from Power BI itself.
Regards,
Markus
Hi @v-shex-msft ,
unfortunately that is just a overview documentation.
I just found these 2 repos on github with example code. This now worked for me.
https://github.com/gramener/comicgen-powerbi/blob/master/src/visual.ts
https://github.com/liprec/powerbi-hierarchySlicer/blob/main/src/graphics.ts
Just look for all places in the code mentioning "landingpage".
Still I also hoped there might be a default landing page / watermark from Power BI itself.
Regards,
Markus
HI @markuskolpext,
I'd like to suggest you take a look at the following document if this help with your situations:
Main sources for acquiring Power BI custom visuals - Power BI | Microsoft Learn
For the watermark settings, perhaps you can try to settings the default background of the custom visual with a custom image which include your watermark.
Regards,
Xiaoxin Sheng
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.