Quantcast
Channel: Developer topics
Viewing all articles
Browse latest Browse all 18014

How to set the size of embed report in powerbi-angular

$
0
0

Hi,

 

I am following the guide in https://github.com/Microsoft/PowerBI-Angular, to embed my PowerBI report in my Angularjs web app. 

 

In the html template, I have

<powerbi-report embed-url="report.embedUrl" access-token="report.token" class="powerbi-frame--dotted"></powerbi-report>

In the controller, I get the embedUrl and token from my own backend server.

var app = angular.module('powerBIEmbedTest');
app.controller('PowerBICtrl', [
    '$scope', '$sce', '$window', 'PowerBIService', function ($scope, $sce, $window, PowerBIService) {
        $scope.status = "OK";


        PowerBIService.GetToken().then(function onSuccess(response){

            $scope.report = response.data;
        }
        ......
        ......

I can see the report is successfully loaded, but the size if very small, the height is just 150 px, the width is about 80% of the screen width. I guess this is the default size. But I don't know how to customize the size, and I did not find in the sample code on github. 

 

Please advise.

 

Thanks.

 


Viewing all articles
Browse latest Browse all 18014

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>