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
Anonymous
Not applicable

Setting fill color on basic shapes using themes (.json)

Hello everyone

I am trying to create a theme using the documentation that is provided by microsoft.

Unfortunately the Docs are old and some of the methods described have deprecated over time, and other functions have been implemented, but not documented.

 

I got most of the theme going, but i simply can't figure out how to change the fill color of a shape.

I suspect it has to do with the fact that more shapes have been put into PBI since the documentation was written, and that the function thirdLevelElements: backgroundLight that used to decide the fill color of shapes is deprecated at this point.

Hede92_0-1632746169774.png

 

I've tried looking at a old thread about this https://community.powerbi.com/t5/Desktop/Themes-For-Shapes/m-p/196835 and a github containing the functions for a shape https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/Shape.json but to no avail.

 

Any help is appreciated.

1 REPLY 1
v-yalanwu-msft
Community Support
Community Support

Hi, @Anonymous ;

I have tried many times, and it was really unsuccessful, I will continue to study.

https://community.powerbi.com/t5/Report-Server/New-Shapes-in-PBI-How-to-Setup-JSON/td-p/1880186

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.