Skip to content

Get Visuals

Amit Shuster edited this page Jan 24, 2021 · 6 revisions
ℹ️ This wiki has been deprecated
All our Client APIs documentation and references can be found in the new Power BI embedded analytics Client APIs documentation set.
For the content of this article see Get pages and visuals.

To get a list of visuals in a specific page, use the getVisuals async method on Page object.

page.getVisuals().then(function(visuals) {
  ...
});

Example: get a list of visuals on the first page:

report.getPages()
  .then(function (pages) {
    // Retrieve first page.
    var firstPage = pages[0];
 
    firstPage.getVisuals()
      .then(function (visuals) {
        console.log(visuals);
      })
  })

Clone this wiki locally