cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

Looking pure javascript code sample for embed power bi

Hi,

 

I know there are couple sample on github, such as:

https://github.com/Microsoft/PowerBI-JavaScript

https://github.com/Azure-Samples/powerbi-angular-client

 

Is there simple sample js code without using any framework, such as AngularJs?

 

Thanks

Aaron

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Resolver II
Resolver II

Re: Looking pure javascript code sample for embed power bi

5 REPLIES 5
Highlighted
Resolver II
Resolver II

Re: Looking pure javascript code sample for embed power bi

Highlighted
Regular Visitor

Re: Looking pure javascript code sample for embed power bi

Hi Thanosd,

Thank you for the reply.

 

The link you provide is very useful, but I have to use web brower develper tool to copy the code then strip out 90% of js libs, css, code which I don't need for understanding what is the only neccessary js libs and js functions for my own code.

If there are some sample code which only contains the following items will be nice:

--js libs

--html page

--js function to request token

--then request power bi pages with token

--then display in the div place holder.

 

This will be easy to integrate into my own code and start to learn it.

 

Resolver II
Resolver II

Re: Looking pure javascript code sample for embed power bi

Hi @aaronchen,

You could also see some end to end examples here https://github.com/Microsoft/PowerBI-Developer-Samples/tree/master/App%20Owns%20Data

This includes how you can get a token and embed a report in a Web page.

Hope it helps.

Thanos
Highlighted
Regular Visitor

Re: Looking pure javascript code sample for embed power bi

Hi Thanosd,

Thanks for all the information. They are all very helpful.

I also found this one is more close to what I need.

https://fleetdemoapp.azurewebsites.net/

Highlighted
Post Partisan
Post Partisan

Re: Looking pure javascript code sample for embed power bi

@aaronchen : i am just starting on powerbi embeded can you help me were to start on with

Helpful resources

Announcements
Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!