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.

Reply
JemmaD
Resolver II
Resolver II

JSON HELP NEEDED

I have some json i've cobbled together from various places, and it's not working, I am certain it's because of my poor use of the curly and square brackets. I have NO idea how to write json, i'm trying to write it to stipulate a specific theme but failing miserably. 

 

Please can someone take a look over this and help me with the coding?

 

{
  "name": "Regional Reporting Theme",
  "textClasses": {
    "label": {
      "color": "#9DA6AC",
      "fontSize": 8,
      "fontFace": "Calibri"
    },
    "callout": {
      "color": "#9AA0A4",
      "fontFace": "Calibri",
      "fontSize": 20
    },
    "title": {
      "color": "#999999",
      "fontFace": "Calibri",
      "fontSize": 8.5
    },
    "header": {
      "color": "#A1A6AB",
      "fontFace": "Calibri",
      "fontSize": 8
    }
  },
  "dataColors": [ "#0057B8", "#CDCED0", "#B349AF", "#009CA6", "#F44B23", "#ECC65A", "#3DBA47", "333F48" ],

  "bad": "#EDA391",
  "neutral": "#EBD082",
  "good": "#75D1B8",
  "minimum": "#EDA391",
  "center": "#EBD082",
  "maximum": "#75D1B8",
  "visualStyles": {
    "page": {
      "*": {
        "outspace": [ { "color": { "solid": { "color": "#F5F5F5" } } } ]
      }
    },
    "*": {
      "*": {
        "outspacePane": [
          {
            "backgroundColor": { "solid": { "color": "#75777A" } },
            "foregroundColor": { "solid": { "color": "#FEFEFE" } }
          }
        ],
        "grid": [
          {
            "gridVertical": false,
            "gridHorizontal": false
          }
        ],
        "columnHeaders": [
          {
            "fontColor": { "solid": { "color": "#333F48" } },
            "backColor": { "solid": { "color": "#FFFFFF" } },
            "fontFamily": "Calibri"
          }
        ],
        "values": [
          {
            "backColorSecondary": { "solid": { "color": "#F5F5F5" } }
          }
        ],
        "clusteredBarChart": {
          "*": {
            "categoryAxis": [
              {
                "show": true,
                "position": "Bottom",
                "labelColor": {
                  "solid": {
                    "color": "#999999"
                  }
                },
                "fontSize": 10,
                "fontFamily": "Calibri"
              }
            ]
          }
        }
      },
      "clusteredColumnChart": {
        "*": {
          "categoryAxis": [
            {
              "show": true,
              "labelColor": {
                "solid": {
                  "color": "#999999"
                }
              },
              "fontsize": 10,
              "fontFamily": "Calibri"
            }
          ]
        }
      }
    }
  }
}
1 ACCEPTED SOLUTION
Hariharan_R
Solution Sage
Solution Sage

Hi @JemmaD 

Use the below site and choose the visual and do the changes like color, font etc and then you can download the JSON file which can be used. You also can do the changes in JSON directly.

 

https://themegenerator.point-gmbh.com/en/Home

 

Use JSON formatter for better read.

https://jsonformatter.org/

Thanks

Hari

Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


My Blog :: YouTube Channel :: My Linkedin


View solution in original post

1 REPLY 1
Hariharan_R
Solution Sage
Solution Sage

Hi @JemmaD 

Use the below site and choose the visual and do the changes like color, font etc and then you can download the JSON file which can be used. You also can do the changes in JSON directly.

 

https://themegenerator.point-gmbh.com/en/Home

 

Use JSON formatter for better read.

https://jsonformatter.org/

Thanks

Hari

Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


My Blog :: YouTube Channel :: My Linkedin


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.