cancel
Showing results for 
Search instead for 
Did you mean: 
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
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors