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

Get Fabric certified for FREE! Don't miss your chance! 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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.