最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

reactjs - powerbi-client-react create visual - Stack Overflow

programmeradmin1浏览0评论

I have an embedded report in a react app and I am looking to create visuals following this example:

I am running into "createVisual is not a function", is there a different approach that should be taken here?

const activePage: Page | undefined = await report.getActivePage();
activePage.createVisual('areaChart');

I have an embedded report in a react app and I am looking to create visuals following this example: https://learn.microsoft/en-us/javascript/api/overview/powerbi/create-add-visual#code-examples

I am running into "createVisual is not a function", is there a different approach that should be taken here?

const activePage: Page | undefined = await report.getActivePage();
activePage.createVisual('areaChart');
Share Improve this question asked Nov 19, 2024 at 14:59 karlrezkarlrez 791 silver badge6 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

createVisual is a Power BI Report Authoring API. Make sure you Install the powerbi-report-authoring-npm package.

发布评论

评论列表(0)

  1. 暂无评论