PowerBI-JavaScript | JavaScript library for embedding Power BI | Data Visualization library

 by   microsoft TypeScript Version: v2.19.1 License: Non-SPDX

kandi X-RAY | PowerBI-JavaScript Summary

kandi X-RAY | PowerBI-JavaScript Summary

PowerBI-JavaScript is a TypeScript library typically used in Analytics, Data Visualization applications. PowerBI-JavaScript has no bugs, it has no vulnerabilities and it has medium support. However PowerBI-JavaScript has a Non-SPDX License. You can download it from GitHub.

JavaScript library for embedding Power BI into your apps. Check out the docs website and wiki for more information.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              PowerBI-JavaScript has a medium active ecosystem.
              It has 944 star(s) with 446 fork(s). There are 153 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              PowerBI-JavaScript has no issues reported. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of PowerBI-JavaScript is v2.19.1

            kandi-Quality Quality

              PowerBI-JavaScript has no bugs reported.

            kandi-Security Security

              PowerBI-JavaScript has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              PowerBI-JavaScript has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              PowerBI-JavaScript releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of PowerBI-JavaScript
            Get all kandi verified functions for this library.

            PowerBI-JavaScript Key Features

            No Key Features are available at this moment for PowerBI-JavaScript.

            PowerBI-JavaScript Examples and Code Snippets

            No Code Snippets are available at this moment for PowerBI-JavaScript.

            Community Discussions

            QUESTION

            Power BI Embedded - Are there any public ClientID, ClientSecret & TenantIds available for implementing App-Owns Scenario of 'ServicePrincipal'
            Asked 2021-Apr-20 at 14:09

            I want to test the client (App Owns Data - ServicePrincipal Scenario) for my own learning. I don't have my own report.

            I was curious if i could find some publicly available ClientID, ClientSecret & TenantIds for testing my client code.

            please help how can i do this for my own learning?

            i know there are Microsoft Sample codes available on following path for the API learning but all of them start from embed-token. I want to test through ClientID, ClientSecret & TenantIds

            Microsft Samples: https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html#

            ...

            ANSWER

            Answered 2021-Apr-20 at 14:09

            i think there are no public ClientID, ClientSecret & TenantIds for testing. we can use tokens from https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html#

            Source https://stackoverflow.com/questions/66975436

            QUESTION

            Property 'value' does not exist on type EventTarget (ts2339)
            Asked 2021-Mar-05 at 02:07

            I am getting squigglies:

            You can see I'm typing it right (I think).

            ...

            ANSWER

            Answered 2021-Mar-05 at 02:07

            Since target could be any other potential element (or even a non-element) you can use a Type Assertion to make it into HTMLButtonElement.

            Source https://stackoverflow.com/questions/66485576

            QUESTION

            Export current PowerBI screen to pptx
            Asked 2020-Dec-02 at 15:15

            I have a web app that shows embedded PowerBI reports. Recently, with help of this link, I've added export of the PowerBI report to PowerPoint. Everything works fine, except the fact that the export is not taking into account at what level of detail the user was looking at. (e.g. he opened the report, but changed the selected tab and went two levels deep from what is shown by default).

            I think that this can be addressed with Bookmark info, more details here, I've managed to get the bookmark info, but I can't find any info on how to make the report export take account of this bookmark info.

            Do you guys have any link or hint how this can be achieved? Thank you!

            LE with code:

            Server code(few approaches and their result):

            1. With providing DefaultBookmark I get an empty PowerPoint file.

              ...

            ANSWER

            Answered 2020-Jul-07 at 06:08

            Export To File In Group accepts pageBookmark to be applied on specific page and defaultBookmark, to be applied on all pages which don't have a specific bookmark. See the Bookmarks section in the link that you provided:

            You can use the exportToFile API to programmatically export a report in a specific state, after applying filters to it. This is done using Bookmarks capabilities. To export a report using bookmarks, use the bookmarks JavaScript API.

            For example, you can use the bookmark's capturedBookmark.state method to capture the changes a specific user made to a report, and then export it in its current state.

            Personal bookmarks and persistent filters are not supported.

            So you should not apply a bookmark on load, but capture the current state and pass it as a page bookmark when calling the export API.

            Source https://stackoverflow.com/questions/62761754

            QUESTION

            "This content is not available" when creating report in App Owns Data scenario
            Asked 2020-Nov-16 at 16:25

            I am working with an ASP.NET Core 3.1 MVC application where I am attempting to implement Power BI in embedded view using the "App Owns Data" scenario and using a Service Principal.

            I can successfully connect to the Power BI service using said Service Principal. I am able to retrieve tokens without issue and pass them through to the Power BI service where I can retrieve a list of reports and view individual reports without issue (using powerbi.embed()). However, when I call the powerbi.createReport() JavaScript method, it always returns "This content is not available" along with a 403 response when viewing in Fiddler.

            Generating an access token

            ...

            ANSWER

            Answered 2020-Nov-16 at 16:25

            In the documentation you linked it mentions the following:

            Source https://stackoverflow.com/questions/64836701

            QUESTION

            How to auto generate embed token using javascript and PHP?
            Asked 2020-Aug-29 at 17:25

            I also posted this on the PowerBI Community but haven't gotten any traction: https://community.powerbi.com/t5/Developer/Auto-Generate-Embed-Token-using-Javascript-and-PHP/td-p/1316556

            I have gotten my report working in test with a token generated using the Microsoft Embed Token - Generate Token (here https://docs.microsoft.com/en-us/rest/api/power-bi/embedtoken/generatetoken) and by using the PowerShell commands.

            I got the formatting just right, changed some config and got it all working just how I wanted it on localhost.

            To try figuring it out, I also used the automated Embedded setup via powerbi.com (here https://app.powerbi.com/embedsetup/appownsdata). I played around with the downloaded vs files which shows that generating the token on the fly is possible but it is all ASP.net and C# and I can't figure out how to convert it.

            Now I am trying to get it deployed to production into my site which uses PHP and javascript.

            Does anyone have some samples or anything where I could swap out my ReportId, GroupId, etc? Script kiddie style...

            Here is what I am using that works perfectly, except for the expiring manually generated token:

            ...

            ANSWER

            Answered 2020-Aug-25 at 19:01

            You need to make two cURL calls to https://login.windows.net/common/oauth2/token and https://api.powerbi.com/v1.0/myorg/groups/{YourGroupID}/reports/ to generate an Embed Access Token. YourGroupID needs to be changed to the WorkspaceId you want to embed from. You also need to set the clientid, username, and password to appropriate values. The below code will set $embedUrl and $embed variables dynamically for you. There is some room for improvement around how ReportId and EmbedUrl set but this is enough to get embedding working.

            Source https://stackoverflow.com/questions/63564271

            QUESTION

            TS error: Type 'event' is missing the following properties from type 'keyboardevent'
            Asked 2020-Jul-16 at 07:17

            I have a custom event listener hook that looks like this:

            ...

            ANSWER

            Answered 2020-Jul-16 at 07:17

            It's OK.

            Working solutions will be

            Source https://stackoverflow.com/questions/62929308

            QUESTION

            Fit content to angular powerBi client iframe
            Asked 2020-May-07 at 11:39

            I have a couple of reports designed in power BI. The problem is as follows: The iframe I have created has a height of 80rem (that's fine). The problem is that in the event that the report is of a lower height there is a blank space that I want to remove.

            I have been testing with css and if I make it smaller the height of the iframe other reports are cut, if I remove the height the report stays with a size of 300w x 150h, I have also tried reading using pages layout (I don't know how to use it because I don't know where the key is taken from), display option and visual layout. All this without success. The guide I use is the following: https://github.com/Microsoft/PowerBI-JavaScript/wiki/Custom-Layout

            reading that I feel that it is solved with pages layout but I don't know how to use it. Do you have a solution? Thanks in advance.

            The power bi config is this:

            ...

            ANSWER

            Answered 2020-May-07 at 11:39

            Good Morning,

            Finally I discovered that my problem was that in order to maintain the 16: 9 aspect ratio on certain screens, the height decreased a lot. To solve it was as simple as modifying the height of the container div of the iframe depending on the width of the screen:

            Source https://stackoverflow.com/questions/61522585

            QUESTION

            Error generating embed token for editable Power BI Embedded dashboard
            Asked 2020-May-01 at 12:10

            I am using a Powershell script to generate an embed token for a Power BI dashboard:

            ...

            ANSWER

            Answered 2020-May-01 at 12:10

            You got the error Bad request because accessLevel: Edit is not supported for dashboards. The accessLevel supported for Generate EmbedToken for dashboard in the group is only View.

            Create and Edit accessLevel is available only for reports.

            Refer to this link: https://docs.microsoft.com/en-us/rest/api/power-bi/embedtoken/dashboards_generatetokeningroup#tokenaccesslevel

            You can use the Try it feature there to see how the REST API calls are made.

            Source https://stackoverflow.com/questions/58066862

            QUESTION

            AbortController missing in TypeScript
            Asked 2020-Jan-24 at 08:54

            I am trying to use AbortController in TypeScript.

            Given this small file:

            ...

            ANSWER

            Answered 2020-Jan-24 at 08:54

            It's because you are missing the value DOM in the lib array of your tsconfig.json. If you check the official repo, you will find the AbortController here!

            Source https://stackoverflow.com/questions/59859347

            QUESTION

            Power BI Embedded - Javascript API & Filtering
            Asked 2020-Jan-21 at 03:26

            I have a working app based on the App Owns Data documentation & GitHub sample:

            https://docs.microsoft.com/en-us/power-bi/developer/embed-sample-for-customers

            https://github.com/Microsoft/PowerBI-Developer-Samples

            My issue is with attempting to incorporate filtering as per the following:

            https://github.com/Microsoft/PowerBI-JavaScript/wiki/Filters#constructing-filters

            I've tried creating a filter in js in the style of:

            ...

            ANSWER

            Answered 2020-Jan-21 at 03:26

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install PowerBI-JavaScript

            You can download it from GitHub.

            Support

            See the Power BI embedded analytics Client APIs documentation to learn how to embed a Power BI report in your application and how to use the client APIs.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/microsoft/PowerBI-JavaScript.git

          • CLI

            gh repo clone microsoft/PowerBI-JavaScript

          • sshUrl

            git@github.com:microsoft/PowerBI-JavaScript.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link