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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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