admin管理员组

文章数量:1336660

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.

本文标签: reactjspowerbiclientreact create visualStack Overflow