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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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