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
CDavies
Resolver I
Resolver I

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

1 ACCEPTED SOLUTION
Gordonlilj
Solution Sage
Solution Sage

Hi,

 

You can either shut it off individually like below

 

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

 

 

Or for all visuals like below

 

"visualStyles": {

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

 

View solution in original post

3 REPLIES 3
v-diye-msft
Community Support
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"

4.PNG

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);
Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
Gordonlilj
Solution Sage
Solution Sage

Hi,

 

You can either shut it off individually like below

 

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

 

 

Or for all visuals like below

 

"visualStyles": {

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

 

Perfect, thanks GordonLilj

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.