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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
artemmuntianu
Frequent Visitor

[Bug] Empty space above Card when it is embedded as Single Visual

We display PowerBI report visuals with the Microsoft embed library https://github.com/Microsoft/PowerBI-JavaScript in a custom web container. We embed a single visual as explained here https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-Single-Visual. All our visuals (e.g. Line, Table) are displayed correctly, except visuals of type Card. Only Card visuals have css style {top: 60px;}

image.png

 

Untitled.jpg

 

In settings object of an embed these visuals have the following values

 

{
  "localeSettings": {
    "language": "en",
    "formatLocale": "en-US"
  },
  "filterPaneEnabled": false,
  "navContentPaneEnabled": false,
  "background": 1,
  "visualSettings": {
    "visualHeaders": [
      {
        "settings": {
          "visible": false
        }
      }
    ]
  },
  "layoutType": 1,
  "customLayout": {
    "displayOption": 0,
    "pageSize": {
      "type": 4,
      "width": 350,
      "height": 200
    },
    "pagesLayout": {
      "ReportSection28597ec2e72b1fca03df": {
        "defaultLayout": {
          "displayState": {
            "mode": 1
          }
        },
        "visualsLayout": {
          "8a5ae98a6614fee5dd79": {
            "displayState": {
              "mode": 0
            },
            "x": 1,
            "y": 1,
            "z": 1,
            "width": 350,
            "height": 200
          }
        }
      }
    }
  }
}

 

 

As you can see, filterPanenavContentPane and visualHeaders are set to false. So, nothing should be above or around it...

 

Has somebody came accross this issue or similar? Is it a bug or we miss something?

1 REPLY 1
artemmuntianu
Frequent Visitor

I am still trying to overcome this issue

 

I created completely empty report with just only one visual - card and set it up to show constant 5

 

The issue is still there. So, it is not related to some specific PBI Connector or other visuals in report

 

Has anybody came accross this issue or similar?

 

Would be helpfull if MS Support team wrote recommendations for this case. Is it a known bug?

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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