The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hello,
I’m working on standardizing Power BI themes across the organization and recently explored the Advanced Slicer Visual schema on GitHub. However, I’m encountering an issue with changing the default shape from a rectangle to a rounded rectangle. According to the schema, the configuration seems correct, but when I upload the theme, the slicer doesn't update as expected. I’m using the new tile slicer in Power BI, and here’s the snippet from the schema I’m working with:
"advancedSlicerVisual": {
"*": {
"shapeCustomRectangle": [
{
"tileShape": "rectangleRoundedCurve",
"rectangleRoundedCurve": 16
}
]
}
}
Solved! Go to Solution.
I happened to be reading another thread here recently, and it looks like a similar issue.
It appears that this property needs to be included
"$id": "default"
which specifies that the rounded corners apply by "default" for all states.
Also, I believe it should be:
"tileShape": "rectangleRounded"
The full JSON snippet would be:
"advancedSlicerVisual": {
"*": {
"shapeCustomRectangle": [
{
"$id": "default",
"tileShape": "rectangleRounded",
"rectangleRoundedCurve": 16
}
]
}
}
Does this work for you? Let me know if I've misunderstood something.
I haven't completely trawled through the Report Theme JSON Schema to justify this yet but it appears to work.
Hey , I am facing the issue in AdvanceSlicerVisual
While we select on the button I want the background should be #FEB9AC and font color #000000 but currently it is catching the default font color i.e white which should be Black even while selection. I have used black font hex in my code still I am facing the issue please find the below code and
let me know what can be done also
please suggest how can I change the border of the tile color as well.
CODE:
Hi, @CountMcCracker
Have you solved your problem? If so, can you share your solution here and mark the correct answer as a standard answer to help other members find it faster? Thank you very much for your kind cooperation!
Best Regards
Yongkang Hua
I happened to be reading another thread here recently, and it looks like a similar issue.
It appears that this property needs to be included
"$id": "default"
which specifies that the rounded corners apply by "default" for all states.
Also, I believe it should be:
"tileShape": "rectangleRounded"
The full JSON snippet would be:
"advancedSlicerVisual": {
"*": {
"shapeCustomRectangle": [
{
"$id": "default",
"tileShape": "rectangleRounded",
"rectangleRoundedCurve": 16
}
]
}
}
Does this work for you? Let me know if I've misunderstood something.
I haven't completely trawled through the Report Theme JSON Schema to justify this yet but it appears to work.
This worked! Thank you!