Forum Discussion
Mlemmers
2 years agoHelper I
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...
- Anonymous2 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
bergmaal
2 years agoFrequent Visitor
This answer does not solve the problem with fill color and outline color. The "show" property works on both, but not the color.
{
"visualStyles": {
"shape": {
"*": {
"outline": [
{
"show": true,
"lineColor": {
"solid": {
"color": "#ffffff"
}
}
}
],
"fill": [
{
"show": true,
"fillColor": {
"solid": {
"color": "#ffffff"
}
}
}
]
}
}
}
}
This visual style adheres to latest schema (reportThemeSchema-2.131.json), but fill color defaults to ThemeColor1, and outline color a shaded version of ThemeColor1. My guess it that this is a bug.