deldersveld / PowerBI-ThemeTemplates

Snippets for assembling Power BI Themes
The Unlicense
460 stars 208 forks source link

Set Shadow Default to False (Off) for all visuals #70

Open Perri29 opened 3 years ago

Perri29 commented 3 years ago

I need to set all shadows to default off or false for all visuals in Power BI.

I'm trying to resolve the issue of shadows being automatically applied by default to new reports - when a dark theme is applied the shadows show up and they have to be removed individually for each page and each visual.

Appreciate the help in advance.

MattRudy commented 3 years ago

Hey @Perri29 - The drop shadow setting can be found as 'dropShadow' and should be setting to 'show: false' as demonstrated in the code snippet below. If you want something to apply to every visual, make sure to make the change in the global area of the JSON template ( visualStyles - "*" - "*" ) instead of the specific-visual area of the template ( visualStyles - "areaChart" - "*" ).

These global settings can be found in the new repository here: https://github.com/MattRudy/PowerBI-ThemeTemplates/blob/master/GlobalLevelTemplate.json

{
    "name": "GlobalLevelTemplate",
    "visualStyles": {
        "*": {
            "*": {
                "dropShadow": [{
                    "show": false
                }]
            }
        }
    }
}
MattRudy commented 3 years ago

If you are creating new issues for this project, please direct them to the new issue list here: https://github.com/MattRudy/PowerBI-ThemeTemplates/issues