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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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