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, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare 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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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

Top Solution Authors