Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
thebruuu
Frequent Visitor

get/set Visuals through API

Hello

 

Is there an API to get/set visuals in PowerBI using code?

To give you an idea, here some use cases:

  1. I would like to set a background image in a bunch of reports
  2. and I would like to set some graphical properties (not tunable via template, like data color in histogram) on some Visuals
  3. I frequently provide data as a donut (pie chart) with a round-shaped kpi in the middle and would kind of speed up the process of delivering  the visual

 

Any help will be appreciated

3 REPLIES 3
sohaibahsan007
Frequent Visitor

@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:

thebruuu_0-1638348166305.png

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.