Forum Discussion

CDavies's avatar
CDavies
Resolver I
6 years ago
Solved

Set Visual Header state in Theme

Hi

I've looked through the documentation but can't seem to find a way of turning off the Visual Headers for all visualisations via a theme?

Is it possible via some undocumented piece of json?

 

Many thanks

  • Hi,

     

    You can either shut it off individually like below

     

    "pieChart": {
          "*": {
            "visualHeader": [
              {
                "show": false
               
              }
            ]
          }
        },

     

     

    Or for all visuals like below

     

    "visualStyles": {
    
      "*": {
        "*": {
          "visualHeader": [
            {
              "show": false
            }
          ]
        }
      }
    } }

     

3 Replies

  • Hi,

     

    You can either shut it off individually like below

     

    "pieChart": {
          "*": {
            "visualHeader": [
              {
                "show": false
               
              }
            ]
          }
        },

     

     

    Or for all visuals like below

     

    "visualStyles": {
    
      "*": {
        "*": {
          "visualHeader": [
            {
              "show": false
            }
          ]
        }
      }
    } }

     

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

    Hi CDavies 

     

    1. it is possible to turn off the visual header in reading mode:

    go to "File -> Options and Settings -> Options -> Report Settings" and check the box "Hide the visual header in reading view"

    2. If you don’t want or can't change this setting in the report, you can do it using the API.

    var embedConfig = {
        …
        settings: {
            filterPaneEnabled: false,
            navContentPaneEnabled: false,
            …
            visualSettings: {
                visualHeaders: [
                    {
                        settings: {
                            visible: false
                        }
                        /* No selector - Hide visual header for all the visuals in the report */
                    }
                ]
            }
        }
    };
    …
    var report = powerbi.embed(embedContainer, embedConfig);