Forum Discussion
Shape theme json
Hello everyone,
I'm currently working on defining shape specifications in my Power BI report using the guidelines found here: PowerBI-ThemeTemplates/Shape.json.
Below is the JSON configuration I’m using:
"basicShape": {
"*": {
"fill": [
{
"show": true,
"fillColor": {
"solid": {
"color": "#F39000"
}
},
"transparency": 40
}
],
"text": [
{
"show": true,
"fontFamily": "Factoria",
"fontColor": {
"solid": {
"color": "#FFFFFF"
}
}
}
],
"rotation": [
{
"angle": 90
}
],
"visualHeader": [
{
"show": false
}
]
}
}
However, after importing this JSON specification into my Power BI report, the expected fill color #F39000 (which should be orange) appears as pink instead, as shown in the attached screenshot.
Has anyone else encountered this issue, or can you offer insights into what might be going wrong? Any assistance would be greatly appreciated.
Thank you!
10 Replies
- rajendraongole1Super User
Hi Shr88 - Make sure the color hex code is correctly formatted. You used #F39000, which is correct, but sometimes removing the # or ensuring there are no extra characters in the JSON can help.
try the attached json file.
- Shr88Frequent Visitor
thanks rajendraongole1 I attempted to incorporate your specifications above into my theme file, but unfortunately, I’m not seeing the desired effect.
Just to clarify, I’m trying to apply this specifically to a rectangle.
- rajendraongole1Super User
Hi Shr88 -Thank you for sharing the screenshots. The JSON theme configuration looks correct, but the rectangle is still showing as pink instead of the expected orange (#F39000).
"basicShape": {
"rectangle": {
"fill": [
{
"show": true,
"fillColor": {
"solid": {
"color": "#F39000"
}
},
"transparency": 0
}
]
}
}
- DekuSuper User
Is a that a brand new visual? If you've set a colour on a visual before, to overwrite the default, even if you update the theme the user selected colour will remain for that visual
- Shr88Frequent Visitor
It's the rectangle shape, not a new visual.
- v-nmadadi-msftCommunity Support
Hi Shr88
As a troubleshooting step, it's important to ensure that you're using the latest version of Power BI Desktop, especially when encountering unexpected behavior, compatibility issues, or errors during development or report publishing.
Also, Try testing with other hex color codes to verify whether they render as expected this will help determine if the issue is specific to the #F39000 fill color or if it's a broader problem with the theme template.
Additionally, Please try applying the same theme template in a new PBIX file to see if the issue persists or if it resolves in a fresh report environment.
If you find this post helpful, please mark it as an "Accept as Solution" and consider giving a KUDOS. Feel free to reach out if you need further assistance.
Thank you - v-nmadadi-msftCommunity Support
Hi Shr88
May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thank you.
- v-nmadadi-msftCommunity Support
Hi Shr88
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If our responses has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you. - v-nmadadi-msftCommunity Support
Hi Shr88
As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided by the community members for the issue worked. If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.
Thanks