Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago

Report Theme Documentation: September Update

I'm looking for basically a full enumeration of all of the JSON labels possible with the new update. I've found the documentation here:

https://powerbi.microsoft.com/en-us/documentation/powerbi-desktop-report-themes/

 

It seems to do a good job listing out JSON keys for visualizations and top-level design options, but doesn't list the names for the options within those. For example, the ability to default to not concatenating X-axis labels, I would assume is something like:

"categoryAxis":[{
    "showAxisTitle":true,
    "concatenateLabels":false
}],

Unfortunately, this doesn't seem to work, and I can't seem to find docs on where these suboptions are.

 

Does anyone have a more extensive example of the new theme options?

6 Replies

  • v-qiuyu-msft's avatar
    v-qiuyu-msft
    Community Support

    Hi Anonymous,

     

    I have sent a email to consult this issue internally. Will update here once I get feedback. 

     

    Best Regards,
    Qiuyun Yu 

    • Anonymous's avatar
      Anonymous
      Not applicable

      MaryF, that looks solid. It's missing some things I was looking for, but I'll definitely be using this to generate quick examples. Thanks!

       

      v-qiuyu-msft, awesome, I look forward to seeing what comes up.

  • v-qiuyu-msft's avatar
    v-qiuyu-msft
    Community Support

    Hi Anonymous,

     

    You can try the sample below: 

     

    {
        "name": "ConCatOff",
        "visualStyles":{
            "*":{
                "*":{
                    "categoryAxis":[{
                        "showAxisTitle":true,
                        "concatenateLabels": false
                    }]
                }
            }
        }
    }
    

    Best Regards,
    Qiuyun Yu 

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thanks, v-qiuyu-msft, but I was mostly using that as an example. I'm still looking for a list that includes the myriad of other options that are also at the hierarchical level of the label concatenation option.

       

      If there was a rule for the JSON that was strictly camel casing of the option, sans punctuation, I could go off of that, but unfortunately that doesn't seem to be the case in all situations.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Shoot, I wish this wasn't posted anonymously. v-qiuyu-msft , was there ever any resolution to this that you found? Within visualStyles I have the below in each of my column/barchart segments but my graphs are still concatenating. 

     

    "categoryAxis": [
    					{
    						"show": true,
    						"position": "Left",
    						"concatenateLabels": false,
    						"showAxisTitle": true,
    						"gridlineShow": false,
    						"titleText": ""
    					}
    				],

     Thanks!

     

    Sara