cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Hede92
Helper II
Helper II

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, @Hede92 ;

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
May 2023 update

Power BI May 2023 Update

Find out more about the May 2023 update.

Submit your Data Story

Data Stories Gallery

Share your Data Story with the Community in the Data Stories Gallery.

Top Solution Authors