Forum Discussion
New Shapes in PBI - How to Setup JSON?
Hi Anonymous ,
It seems that something wrong with the custom shape by json file. I tried it also in the latest verison of power bi desktop cloud version, it didn't work also.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
Hi Dedmon,
my version is an extended version of this:
https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/Shape.json
{
"name": "ShapeTemplate",
"visualStyles": {
"basicShape": {
"*": {
"line": [{
"lineColor": { "solid": { "color": "#01B8AA"}},
"transparency": 0,
"weight": 3,
"roundEdge": 0
}],
"fill": [{
"show": true,
"fillColor": { "solid": { "color": "#DDDDDD"}},
"transparency": 0
}],
"rotation": [{
"angle": 0
}],
"visualHeader": [{
"show": false
}]
}
}
}
}Of course, my code was only a part of a much larger JSON file... I assumed you would anticipate that. Sorry.
Anyway: If we focus on the fill attribute the new shapes do not recognize the setting given in the JSON file. So my question is: were there any fundamental changes to how to setup the JSON file regarding the new shapes and if so, where is the documentation?
Thanks in advance
Axel
- v-deddai1-msft5 years agoCommunity Support
Hi Anonymous ,
Yes, I test it with the code provide in github yesterday, it didn't work even in the latest version of power bi desktop cloud version. Unfortunately, I didn't find any document that talking about setting up json for the new shape. I suggest you raise a support ticket for it. Go to https://support.powerbi.com. Scroll down and click "CREATE SUPPORT TICKET".
Best Regards,
Dedmon Dai