开发人员可以使用 Power BI 做什么?What can developers do with Power BI?

Power BI 为开发人员提供了大量选项。Power BI offers a wide range of options for developers. 此范围涉及从嵌入到自定义视觉对象到流式处理数据集。This ranges from embedding to custom visuals and streaming datasets.

嵌入Embedding

Azure 中的 Power BI 服务和 Power BI Embedded 一起提供单个 API,用于嵌入仪表板和报表。The Power BI service and Power BI Embedded in Azure are coming together to offer a single API for embedding your dashboards and reports. 这意味着,在嵌入内容时,将拥有一个 API 外围、一组一致的功能以及对最新 Power BI 功能(如仪表板、网关和应用工作区)的访问权限。This means you will have one API surface, a consistent set of capabilities and access to the latest Power BI features – such as dashboards, gateways and app workspaces – when embedding your content. 有关详细信息,请参阅使用 Power BI 嵌入For more information, see Embedding with Power BI.

自定义视觉对象Custom visuals

可以通过自定义视觉对象创建自己的视觉对象,以便在 Power BI 报表中使用。Custom visuals allow you to create your own visuals for use within Power BI reports. 使用 TypeScript 编写自定义视觉对象,TypeScript 是 JavaScript 的超集,支持某些高级功能和提前访问 ES6/ES7 功能。Custom visuals are written in TypeScript which is a superset of JavaScript that supports some advanced features and early access to ES6/ES7 functionality. 视觉对象样式使用层叠样式表 (css) 进行处理。Visual styling is handled using cascading styles sheets (css). 为方便起见,我们使用 Less 预编译器,该编译器支持某些高级功能,例如嵌套、变量、mixins、条件、循环等。如果不想使用其中任何一种功能,可以只在 less 文件中编写普通 css。For your convinence, we use the Less pre-compiler which supports some advanced features such as nesting, variables, mixins, conditions, loops, etc. If you don't want to use any of those features, you can just write plain css in the less file.

有关如何开发和发布自定义视觉对象的详细信息,请参阅将自定义视觉对象发布到 Office 应用商店For more information about how to develop and publish a custom visual, see Publish custom visuals to the Office store.

将数据推送到 Power BIPush data into Power BI

可以使用 Power BI API 将数据推送到数据集。You can use the Power BI API to push data into a dataset. 这样可以将行添加到数据集内的表。This allows you to add a row to a table within a dataset. 新数据随后可以在仪表板的磁贴中以及报表中的视觉对象内反映出来。The new data can then be reflected in tiles on a dashboard and within visuals within your report.

有关详细信息,请参阅将数据推送到仪表板For more information, see Push data into a dashboard

后续步骤Next steps

使用 Power BI 嵌入Embedding with Power BI
如何将 Power BI Embedded 工作区集合内容迁移到 Power BIHow to migrate Power BI Embedded workspace collection content to Power BI
JavaScript API Git 存储库JavaScript API Git repo
Power BI C# Git 存储库Power BI C# Git repo
将自定义视觉对象发布到 Office 应用商店Publish custom visuals to the Office store
Power BI 视觉对象 Git 存储库Power BI Visuals Git repo
JavaScript 嵌入示例JavaScript embed sample
Power BI Premium 白皮书Power BI Premium whitepaper
更多问题?More questions? 尝试参与 Power BI 社区Try the Power BI Community