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

admin2025-03-20  6

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.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1742421042a212938.html

最新回复(0)