Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get 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

Reply
markuskolpext
Frequent Visitor

Custom visual and landing page not showing

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:

  • Is there a default watermark. If yes how is it enabled?
  • Otherwise how do I set a custom landing page / watermark ?

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

1 ACCEPTED SOLUTION
markuskolpext
Frequent Visitor

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

View solution in original post

2 REPLIES 2
markuskolpext
Frequent Visitor

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

v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.