I am using the PowerBI JS API to get reports and visuals. So far using the function below gives the title of the visuals and the visuals in svg tags.
report.getPages() .then(function (pages) {
// Retrieve first page.
var firstPage = pages[0];
firstPage.getVisuals()
.then(function (visuals) {
console.log(visuals); }) })
I want to download each visual as an image and save them to my PC.
Any one has a solution?
I've tried many methods without success