Forum Discussion

Mlemmers's avatar
Mlemmers
Helper I
2 years ago
Solved

Shape theme json fill color not showing

Hey,   I'm working on a power bi theme json and have been perusing different githubs with source code for this, https://github.com/MattRudy/PowerBI-ThemeTemplates/blob/master/Shape.json for example...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi Mlemmers ,

    Thanks for reaching out to us with your problem. Base on your decription, it seems that the fill color not display for the shape even though set it in theme file. You can adjust the codes as below and check if it works:

    {
        "name": "Custom Theme",
        "dataColors": ["#01B8AA", "#374649", "#FD625E", "#F2C80F", "#5F6B6D", "#8AD4EB"],
        "visualStyles": {
            "shapes": {
                "*": {
                    "general": [{
                        "keepLayerOrder": true
                    }],
                    "fill": [{
                        "show": true,
                        "fillColor": {
                            "solid": {
                                "color": "#FFFFFF"
                            }
                        }
                    }],
                    "outline": [{
                        "show": false
                    }],
                    "visualHeader": [{
                        "show": false
                    }]
                }
            }
        }
    }

    Best Regards