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
Anonymous
2 years agoNot applicable
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
- sebastiaanw2 years agoRegular Visitor
We face the same issue. I tried to import this JSON, but it doesn't seem to work. The outline is still there and the fill color hasn't changed. The fill color still uses the main theme color 1. Any other options?