Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

0

Fix shape formatting in theme json

In the json for Power BI themes, it is currently not possible to change the fill and border/line of a shape (as a rectangle), it should be possible by using the following code (see below), but that is not working. 

Also it is neither working by using...

  • "shape" nor "basicShape"
  • "border" nor "line"

Also see this thread: New Shapes in PBI - How to Setup JSON? - Microsoft Power BI Community 

It is possible though to add an additional line by using "shape" and then "border" but this somehow just creates an additional border and the original one is still there (see also screenshot).

HannahFondOf_0-1660656036216.png

 

 

"shape": {
            "*": {
                "border": [{
                    "color": {"solid": {"color": "#F1CA10"}},
                    "show": true
                }],
                "line": [{
                    "lineColor": { "solid": { "color": "#F1CA10"}},
                    "show": true,
                    "transparency": 0,
                    "weight": 13,
                    "roundEdge": 3
                }]
            }
        }
Status: Delivered

This thread will now be closed, and if you need to discuss this issue further, you can contact me in the post to modify the status.

Comments
v-xiaoyan-msft
Community Support
Status changed to: Investigating

Hi @HannahFondOf ,

 

In the json for Power BI themes, it is currently not possible to change the fill and border/line of a shape .It seems by design.

 

If you would like to suggest  feature improvements, you may  vote the idea and comment here  to improve this feature. It is a place for customers provide feedback about Microsoft Office products . What’s more, if a feedback is high voted there by other customers, it will be promising that Microsoft Product Team will take it into consideration when designing the next version in the future.

 

Best Regards,
Community Support Team _ Caitlyn

v-xiaoyan-msft
Community Support
Status changed to: Delivered

This thread will now be closed, and if you need to discuss this issue further, you can contact me in the post to modify the status.