Forum Discussion

Nick10's avatar
Nick10
New Member
7 years ago
Solved

report theme - set border for all visuals

Hi guys, 

 

I´m looking for the right json-code to give all my visuals a border in a certain color. 

 

This is my code now: 

{
  "name": "MyTheme1",
  "dataColors": [
    "#1079c1",
    "#66afda",
    "#99c9e6",
    "#284861",
    "#536475",
    "#94a3af",
    "#bfd3ef",
    "#bfbfbf",
    "#7f7f7f",
    "#404040",
    "#0d0d0d"
  ],
  "background": "#ffffff",
  "foreground": "#0d0d0d",
  "tableAccent": "#284861",
  "visualStyles": {
    "*": {
      "*": {
        "*": [
          {
            "fontSize": 10,
            "fontFamily": "Arial",
            "border": [{
                    "show": true,
                    "color": { "solid": { "color": "#F17925" } }
            }]
          }
        ]
      }
    }
  }
}

This is what i found on the internet, but it doesn´t work... 

"border": [{

                    "show": true,

                    "color": { "solid": { "color": "#F17925" } }
}]

Is "border" the right propertyName? 

 

I would be very lucky if somebody can help me. Thank you. 

 

 

 

 

4 Replies

  • v-lili6-msft's avatar
    v-lili6-msft
    Community Support

    hi, Nick10

       You can try this code as below:

    {
      "name": "MyTheme1",
      "dataColors": [
        "#1079c1",
        "#66afda",
        "#99c9e6",
        "#284861",
        "#536475",
        "#94a3af",
        "#bfd3ef",
        "#bfbfbf",
        "#7f7f7f",
        "#404040",
        "#0d0d0d"
      ],
      "background": "#ffffff",
      "foreground": "#0d0d0d",
      "tableAccent": "#284861",
    	"visualStyles": {
    		"*": {
    			"*": {
    		
    				"border": [{
    					"show": true,
    					"color": { "solid": { "color": "#F17925" } }
    				}]
    			}
    		}
    	}
    }

    Result:

    Best Regards,

    Lin

     

    • Nick10's avatar
      Nick10
      New Member

      Hello Lin, 

       

      I tried your code but it dosen´t work :( 

       

      result: 

      result

      What could be the Problem? Do i need a special option or is it a version-problem? I use power bi desktop version march 2018. 

       

      Thank you very much for your time!

       

      regards, 

      Nick