Forum Discussion

keekee's avatar
keekee
Frequent Visitor
3 years ago

Customise a Report Theme for Table and Matrix

HI,

I used the Power BI Desktop GUI to define custom colours and font etc, My background is purple and colours used are defined below. The THeme 'works' for most of the Visuals I use however it doesn't for Tables and Matrix's - these are still appearing in white with black font. I have tried to edit the JSON file to define TableEx attributes but all my other visuals defualt to the factory/standard settings; is there a way to define an entry to the JSON file for Table and Matrix that doesn't override the other settgins.

JSON code is below:

thanks in advance:

 

{
"name": "Accessible Neutral",
"dataColors": [
"#27D4B6",
"#FF007F",
"#8B64EA",
"#F5C745",
"#C1F46F",
"#A0E1FC",
"#928F8B",
"#242828",
"#3599B8",
"#DFBFBF",
"#4AC5BB",
"#5F6B6D",
"#FB8281",
"#F4D25A",
"#7F898A",
"#A4DDEE",
"#FDAB89",
"#B687AC",
"#28738A",
"#A78F8F",
"#168980",
"#293537",
"#BB4A4A",
"#B59525",
"#475052",
"#6A9FB0",
"#BD7150",
"#7B4F71",
"#1B4D5C",
"#706060",
"#0F5C55",
"#1C2325"
],
"foreground": "#24212E",
"background": "#FFFFFF",
"foregroundNeutralSecondary": "#6E5746",
"backgroundLight": "#FCF7F0",
"foregroundNeutralTertiary": "#928F8B",
"backgroundNeutral": "#EDE8E1",
"tableAccent": "#566164",
"maximum": "#34373B",
"center": "#B08D72",
"minimum": "#86989C",
"bad": "#4D332C",
"neutral": "#8C705B",
"good": "#6B797D",
"textClasses": {
"label": {
"fontFace": "Roboto",
"color": "#FDFCFB"
},
"callout": {
"color": "#FEFDFD",
"fontFace": "Roboto"
},
"title": {
"color": "#FEFDFB",
"fontFace": "Roboto"
},
"header": {
"color": "#FDFCFB",
"fontFace": "Roboto"
}
},
"visualStyles": {
"page": {
"*": {
"background": [
{
"color": {
"solid": {
"color": "#10034F"
}
},
"transparency": 100
}
],
"outspace": [
{
"color": {
"solid": {
"color": "#10034F"
}
}
}
]
}
},
"*": {
"*": {
"outspacePane": [
{
"backgroundColor": {
"solid": {
"color": "#10034F"
}
},
"foregroundColor": {
"solid": {
"color": "#F9F8FD"
}
},
"checkboxAndApplyColor": {
"solid": {
"color": "#FF007F"
}
}
}
],
"background": [
{
"color": {
"solid": {
"color": "#271C60"
}
}
}
],
"visualHeader": [
{
"background": {
"solid": {
"color": "#27D4B6"
}
}
}
],
"filterCard": [
{
"$id": "Applied",
"backgroundColor": {
"solid": {
"color": "#10034F"
}
},
"foregroundColor": {
"solid": {
"color": "#FEFDFD"
}
},
"transparency": 0
},
{
"$id": "Available",
"backgroundColor": {
"solid": {
"color": "#10034F"
}
},
"foregroundColor": {
"solid": {
"color": "#FEFEFE"
}
},
"transparency": 0
}
],
"visualTooltip": [
{
"valueFontColor": {
"solid": {
"color": "#3E376E"
}
}
}
],
"visualHeaderTooltip": [
{}
],
"border": [
{
"color": {
"solid": {
"color": "#FFFDFD"
}
},
"show": true
}
]
}
}
}
}

4 Replies

  • keekee's avatar
    keekee
    Frequent Visitor

    hi,

    thanks for the reply but I want the style to be applied by default. i.e. when I create a new Report I would like that the style is automatically applied to the Table/ Matrix visuals; I don't want to have to edit the visuals within the Report. Thanks for the response though

     

  • keekee's avatar
    keekee
    Frequent Visitor

    HI,

    thanks for your response. I think you mean that there is already a json file with the theme. I am unable to set the visual properties for Table & Grid without the default being applied to all other visuals.  I am looking for the snipet of code that won't update all other visuals

    • Anonymous's avatar
      Anonymous
      Not applicable

      HI keekee,

      Perhaps you can submit an idea for these to submit and apply the current custom theme settings as default theme of the users which in the same organizations.

      Microsoft Power BI ideas

      Regards,

      Xiaoxin Sheng