cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
CDavies
Helper I
Helper 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
        }
      ]
    }
  }
} }

 

View solution in original post

Perfect, thanks GordonLilj

Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,152)