当我成功地将报表嵌入到html div容器中时,现在我想要获取报表数据(或报表页面的可视化数据),它是否可以通过Power BI JavaScript SDK API获得?
发布于 2018-02-08 20:41:23
若要获取特定页面中的视觉效果列表,请对page对象使用getVisuals async方法。
page.getVisuals().then(function(visuals) {
...
});示例:获取第一页的可视化列表:
report.getPages()
.then(function (pages) {
// Retrieve first page.
var firstPage = pages[0];
firstPage.getVisuals()
.then(function (visuals) {
console.log(visuals);
})
})https://github.com/Microsoft/PowerBI-JavaScript/wiki/Get-Visuals
但是看一看对象层次结构,您就不能做太多(https://github.com/Microsoft/PowerBI-JavaScript/wiki/Understanding-the-object-hierarchy) PowerBI-JavaScript Object Hierachy
https://stackoverflow.com/questions/48096881
复制相似问题