Report canvas backgrounds changed when publishing report to service
For some reason this now works again on new PBIX and the ones that had the bug has returned to their normal color (could have happened after refresh?). However, I just published one wich had the theme already and some visuals were affected (table viz and custom viz), but not the background. I also tried to refresh this one without any luck. Attatching screenshot:
I'm pretty sure it was the color attribute in the JSON file that caused this issue. When I removed that attribute in red and updated the theme + republished it went back to normal. Also when setting the background color to black, then white- and republish fixed the surrounding canvas background back to normal.
Here is the JSON file, just changed some of the corp colors:
{
"name": "Issue with color when published to service",
"dataColors": ["#00000", "#0f204b", "#3f9c38", "#007591","#fec880", "#e99300", "#666666", "#cccccc"],
"background":"#ffffff",
"foreground": "#666666",
"tableAccent": "#009ada",
"visualStyles":{
"*":{
"*":{
"*":[
{
"fontSize":9,
"fontFamily":"Verdana",
"color":{
"solid":{
"color":"#666666"
}
}
}
],
"general":[
{
"responsive":true
}
]
}
},
"barChart":{
"*":{
"general":[
{
"responsive":true
}
],
"legend":[
{
"show":true,
"position":"Top",
"titleText":"",
"labelColor":{
"solid":{
"color":"#666666"
}
},
"fontSize":9,
"fontFamily":"Verdana"
}
],
"categoryAxis":[
{
"show":true,
"position":"Left",
"fontSize":11,
"fontFamily":"Verdana",
"showAxisTitle":true,
"titleColor":{
"solid":{
"color":"#0f204b"
}
},
"titleText":"",
"titleFontSize":11,
"titleFontFamily":"Verdana"
}
],
"valueAxis":[
{
"show":true,
"axisScale":"linear",
"fontSize":11,
"fontFamily":"Verdana",
"showAxisTitle":true,
"titleColor":{
"solid":{
"color":"#0f204b"
}
},
"titleText":"",
"titleFontSize":11
}
],
"labels":[
{
"fontSize":9,
"fontFamily":"Verdana"
}
]
}
},
"columnChart":{
"*":{
"general":[
{
"responsive":true
}
],
"legend":[
{
"show":true,
"titleText":"",
"labelColor":{
"solid":{
"color":"#666666"
}
},
"fontSize":11,
"fontFamily":"Verdana"
}
],
"categoryAxis":[
{
"show":true,
"fontSize":11,
"fontFamily":"Verdana",
"showAxisTitle":true,
"titleText":"",
"titleFontSize":11,
"titleFontFamily":"Verdana"
}
],
"valueAxis":[
{
"show":true,
"position":"Left"
}
]
}
}
}
}