Forum Discussion
Slicer "effects" background in JSON theme file
How to set Power BI's slicer's "effects" background color in JSON theme file? Can anyone help please?
Hi teresating886 ,
Please try something like this:
{ "name": "slicer background format", "dataColors": [ "#f3c809" ], "visualStyles": { "slicer": { "*": { "background": [ { "show": true, "color": { "solid": { "color": { "expr": { "ThemeDataColor": { "ColorId": 2, "Percent": 0 } } } } } } ] } } } }Output:
Here are some links that may help you in creating JSON theme file:
Use report themes in Power BI Desktop - Power BI | Microsoft Docs
PowerBI-ThemeTemplates/README.md at master ·MattRudy/PowerBI-ThemeTemplates ·GitHub
How To Discover Undocumented Theme Settings in Power BI Desktop | by Nolock | Medium
Theme Generator (powerbi.tips)
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
1 Reply
- v-jianboli-msft
Community Support
Hi teresating886 ,
Please try something like this:
{ "name": "slicer background format", "dataColors": [ "#f3c809" ], "visualStyles": { "slicer": { "*": { "background": [ { "show": true, "color": { "solid": { "color": { "expr": { "ThemeDataColor": { "ColorId": 2, "Percent": 0 } } } } } } ] } } } }Output:
Here are some links that may help you in creating JSON theme file:
Use report themes in Power BI Desktop - Power BI | Microsoft Docs
PowerBI-ThemeTemplates/README.md at master ·MattRudy/PowerBI-ThemeTemplates ·GitHub
How To Discover Undocumented Theme Settings in Power BI Desktop | by Nolock | Medium
Theme Generator (powerbi.tips)
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.