Forum Discussion
Power Bi reports Background color changed when Published
Anonymous,
Thanks for replying!
I created one new Power BI Test reports and published it. It worked perfectly fine.
Then , I tried removing Theme file (.json file) from the report. It didn't wok. Just to make sure, in File-> Option-> Preview Features-> I unchecked the 'Custom report theme ' option. Is there anything else I need to do to remove the theme file?
Here is the json file code. I can see background as 'White' only in the below code.
Also, Does it matter the location of the .json file? Few days back I moved the file to different folder. Is that the cause of it?
{"name":"20171123_AKra",
"background":"#FFFFFF","foreground":"#124191","tableAccent":"#124191",
"dataColors":["#124191","#00C9FF","#001135","#FF3154","#E61E1E","#E6AA1E","#FFFB00","#4BDD33","#82BE1E","#641464",
"#EDF2F5","#BEC8D2","#98A2AE","#4D5766","#273142"],
"visualStyles":
{"*":{"*":{"*":[{"fontSize":10,"fontFamily":"Arial","color":{"solid":{"color":"#124191"}}}],
"general":[{"responsive":true}]}},
"card":{"*":{"labels":[{"fontSize":28}],"categoryLabels":[{"fontSize":14}]}}
}}
Thanks!
Regards,
Poonam
Hi,
It seems there is some problem with .json file only. After importing file only I am getting background in blue.
But it is happenieng when I am publishing the Power BI report on Office 365. On Power BI Desktop, I am seeing White backgrund only. The above json file I am importing in my report.
Could you please help me on that.
Thanks!
Regards,
Poonam
- Anonymous8 years agoNot applicable
Hi Anonymous,
I'd like to suggest you remove background property from json theme file and try again.
Regards,
Xiaoxin Sheng
- Anonymous8 years agoNot applicable
Hi Anonymous,
I tried removing the Background property from the json file but still seeing blue background after published. :(
- Poonam
- Anonymous8 years agoNot applicable
Hi Anonymous,
>> Is there anything else I need to do to remove the theme file?
You can click on change theme option and choose use default theme to restore default style.
>>Also, Does it matter the location of the .json file? Few days back I moved the file to different folder. Is that the cause of it?
Delete theme file not effect enabled theme effect, when you import theme file, it will also import json setting to power bi report.
For background color issue, I think it should related to below bold part:
{"name":"20171123_AKra", "background":"#FFFFFF","foreground":"#124191","tableAccent":"#124191", "dataColors":["#124191","#00C9FF","#001135","#FF3154","#E61E1E","#E6AA1E","#FFFB00","#4BDD33","#82BE1E","#641464", "#EDF2F5","#BEC8D2","#98A2AE","#4D5766","#273142"], "visualStyles": {"*":{"*":{"*":[{"fontSize":10,"fontFamily":"Arial","color":{"solid":{"color":"#124191"}}}], "general":[{"responsive":true}]}}, "card":{"*":{"labels":[{"fontSize":28}],"categoryLabels":[{"fontSize":14}]}} }}Please use below code to replace original one and test to re-publish:
{ "name":"20171123_AKra", "background":"#FFFFFF", "dataColors":[ "#124191", "#00C9FF", "#001135", "#FF3154", "#E61E1E", "#E6AA1E", "#FFFB00", "#4BDD33", "#82BE1E", "#641464", "#EDF2F5", "#BEC8D2", "#98A2AE", "#4D5766", "#273142" ], "visualStyles":{ "*":{ "*":{ "*":[ { "fontSize":10, "fontFamily":"Arial" } ], "general":[ { "responsive":true } ] } }, "card":{ "*":{ "labels":[ { "fontSize":28 } ], "categoryLabels":[ { "fontSize":14 } ] } } } }Regards,
Xiaoxin Sheng