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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.