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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.