Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hello
Is there an API to get/set visuals in PowerBI using code?
To give you an idea, here some use cases:
Any help will be appreciated
@thebruuu Yes, Power BI SDK is available. you can use to create visuals, set property and themes,
https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-report-themes
https://github.com/microsoft/PowerBI-JavaScript.
you can integrate it with Angular or any framework, Embed the Report and start playing with it, they also have playground area to get started,
Can you point me to the Power BI SDK?
I don't find code to create for example an histogram in power BI via code
wrt to Themes ,they are no good for loading an image (like a background logo)
nor for 'data color' which refers to below properties in an histogram:
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |