Forum Discussion
Set shape color in Theme .json
- Anonymous4 years ago
Hi Anonymous ,
Please try this code and test whether it will work.
For referenec: https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/Shape.json
{ "name": "ShapeTemplate", "visualStyles": { "basicShape": { "*": { "line": [{ "lineColor": { "solid": { "color": "#01B8AA"}}, "transparency": 0, "weight": 3, "roundEdge": 0 }], "fill": [{ "show": true, "fillColor": { "solid": { "color": "#DDDDDD"}}, "transparency": 0 }], "rotation": [{ "angle": 0 }], "visualHeader": [{ "show": false }] } } } }And you can check the official document about power bi themes. It listed all the properties: (notice: some of the properties can be confited but they not really enabeld to settings since power bi did not release them to GA for theme usage)
Use report themes in Power BI Desktop - Power BI | Microsoft Docs
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello,
Did some ever achieved to set shape border / background with theme ? I tried several things found on differents pages with no success.
It seems to be broken.
After lots of research I finally found a working JSON for shape https://community.powerbi.com/t5/Report-Server/New-Shapes-in-PBI-How-to-Setup-JSON/m-p/1880186