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
1 Answer
Reset to default 1createVisual
is a Power BI Report Authoring API. Make sure you Install the powerbi-report-authoring-npm package.