Forum Discussion

JemmaD's avatar
JemmaD
Icon for Helper V rankHelper V
4 years ago
Solved

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 Reply