Power bi embedded 中的报表视觉效果和磁贴之间有什么区别?
What's the difference between report visuals and tiles in power bi embedded?
我不清楚 power bi 报表视觉效果和图块之间的区别?报表视觉效果具有更多交互界面,而磁贴则没有。
它只是一个只读报表视觉对象吗?
还有报告视觉效果,您是否也无法添加呈现报告时可用的上下文菜单?
谢谢,
德里克
不同之处在于 Power BI 项目的来源和检索它所需的设置。
报表视觉对象 - 顾名思义,这是驻留在 Power BI 报表中的视觉对象。
要嵌入它,您需要使用:
// Embed configuration used to describe the what and how to embed.
// This object is used when calling powerbi.embed.
// This also includes settings and options such as filters.
// You can find more information at https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-Configuration-Details.
var config= {
type: 'visual',
tokenType: models.TokenType.Embed,
accessToken: txtAccessToken,
embedUrl: embedUrl,
id: reportId,
pageName: pageName,
visualName: visualName
};
// Get a reference to the embedded report HTML element
var embedContainer = $('#visualContainer')[0];
// Embed the report and display it within the div container.
var report = powerbi.embed(embedContainer, config);
其中 id
指 ReportId,pageName
和 visualName
分别指它所在的页面和视觉名称。
https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-Single-Visual
磁贴 - 这是一个仪表板磁贴,本质上是一个视觉效果,固定到 Power BI 中的仪表板。
// Embed configuration used to describe the what and how to embed.
// This object is used when calling powerbi.embed.
// You can find more information at https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-Configuration-Details.
var config= {
type: 'tile',
tokenType: models.TokenType.Embed,
accessToken: accessToken,
embedUrl: embedUrl,
id: embedTileId,
dashboardId: embedDashboardId
};
// Get a reference to the embedded tile HTML element
var tileContainer = $('#tileContainer')[0];
// Embed the tile and display it within the div container.
var tile = powerbi.embed(tileContainer, config);
其中 id
是图块 ID (GUID),dashboardId
是它所在的仪表板。
编辑
另一个区别是,Report Visual 支持 Report Embed 中可用的所有功能,例如书签、导出数据、自定义布局、菜单扩展。而 tile 仅支持目前仅限于各种事件的仪表板交互,主要的是 'tileClicked' 事件
我不清楚 power bi 报表视觉效果和图块之间的区别?报表视觉效果具有更多交互界面,而磁贴则没有。
它只是一个只读报表视觉对象吗?
还有报告视觉效果,您是否也无法添加呈现报告时可用的上下文菜单?
谢谢, 德里克
不同之处在于 Power BI 项目的来源和检索它所需的设置。
报表视觉对象 - 顾名思义,这是驻留在 Power BI 报表中的视觉对象。 要嵌入它,您需要使用:
// Embed configuration used to describe the what and how to embed.
// This object is used when calling powerbi.embed.
// This also includes settings and options such as filters.
// You can find more information at https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-Configuration-Details.
var config= {
type: 'visual',
tokenType: models.TokenType.Embed,
accessToken: txtAccessToken,
embedUrl: embedUrl,
id: reportId,
pageName: pageName,
visualName: visualName
};
// Get a reference to the embedded report HTML element
var embedContainer = $('#visualContainer')[0];
// Embed the report and display it within the div container.
var report = powerbi.embed(embedContainer, config);
id
指 ReportId,pageName
和 visualName
分别指它所在的页面和视觉名称。
https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-Single-Visual
磁贴 - 这是一个仪表板磁贴,本质上是一个视觉效果,固定到 Power BI 中的仪表板。
// Embed configuration used to describe the what and how to embed.
// This object is used when calling powerbi.embed.
// You can find more information at https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-Configuration-Details.
var config= {
type: 'tile',
tokenType: models.TokenType.Embed,
accessToken: accessToken,
embedUrl: embedUrl,
id: embedTileId,
dashboardId: embedDashboardId
};
// Get a reference to the embedded tile HTML element
var tileContainer = $('#tileContainer')[0];
// Embed the tile and display it within the div container.
var tile = powerbi.embed(tileContainer, config);
其中 id
是图块 ID (GUID),dashboardId
是它所在的仪表板。
编辑
另一个区别是,Report Visual 支持 Report Embed 中可用的所有功能,例如书签、导出数据、自定义布局、菜单扩展。而 tile 仅支持目前仅限于各种事件的仪表板交互,主要的是 'tileClicked' 事件