Forum Discussion
New Shapes in PBI - How to Setup JSON?
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
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