public void updateHeader() {
        //String s;
        Double s,max,min,avg;        
        if (chart.showAbsoluteRatios) {
            //s = headerString(heightRatio * heightScale);
            s = heightRatio * heightScale;
        } else {
            //s = headerString(heightRatio);
            s = heightRatio;
        }
        //*********FORMAT TEXT*********
//        Integer pct;
        Double pct_d = s * 100 * chart.heightScalingConstant;
        DecimalFormat twoDForm = new DecimalFormat("#.#");
        Double pct = Double.valueOf(twoDForm.format(pct_d));
//        System.out.println(name+" "+heightRatio+" "+heightScale);
        if(table instanceof AttributeCell){
        	AttributeCell cell = (AttributeCell) table;
        	max = Double.valueOf(twoDForm.format(chart.maxWeightMap.get(cell.getName())*100));
        	min = Double.valueOf(twoDForm.format(chart.minWeightMap.get(cell.getName())*100));
        	avg = Double.valueOf(twoDForm.format(chart.averageAttributeWeights.get(cell.getName())*100));
//        	pct = (int)Math.ceil((s *chart.heightScalingConstant * 100));
//        	pct = s *chart.heightScalingConstant * 100;
//        	System.out.println(name+" "+s +" "+chart.heightScalingConstant);
//        	pct = (int)(s * 100);
        	String mainText = "";
        	String smallText = "";
        	if (getHeight() < 30) {
                mainText = name.replace('_', ' ');
                smallText = "[MIN: " + min + "%,  MAX: "+ max + "%";
            } else {
                mainText = name.replace('_', ' ');
                smallText = "[MIN: " + min + "%,  MAX: "+ max + "%";
            }
        	if(chart.showAvgWeights || chart.generateAvgGVC){
        		smallText += "<br>AVG: " + avg + "%]";
        	} else {
        		smallText += "]";
        	}
        	header.setMainText(mainText);
        	header.setSmallText(smallText);
            header.setToolTipText("<html><blockquote><left><font size=\"4\">" + name.replace('_', ' ') + "<br><small> [MIN: " + min + "%,  AVG: "+ avg + "%,  MAX: "+ max + "%]</small></left></blockquote></html>");
            header.setFont(new Font("Verdana", Font.PLAIN, 12));
        }
        else{
        	if (getHeight() < 30) {
                header.setMainText(name.replace('_', ' '));
            } else {
                header.setMainText(name.replace('_', ' '));
            }
            //header.setText(s);
            header.setToolTipText("<html><blockquote><left><font size=\"4\">" + name.replace('_', ' ') );
            header.setFont(new Font("Verdana", Font.PLAIN, 12));
        }
    }