Knowledge Base Article

Remove Horizontal Gray Lines After Column Headers In Pivot Tables

Many customers have expressed interest in removing the horizontal gray lines that run to the end of the pivot table widget under the column headers:
This script will remove those lines for a pivot table:
widget.on("domready", function(w){
 var tags = $('td.phantom', element);
 for(var i=0; i<tags.length; i++) {
  tags[i].style.width = '0px';
 }
})
Result:
Updated 03-02-2023
Comments have been turned off for this article