Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare 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
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.