lessOrGreaterThan(res, getWorstBestSoFar(xName))){
                    setWorstBestSoFar(xName, res);                     
                }
            });
          });
          $.each(data, function(i, allResConfig) {
            $.each(allResConfig.y, function(index, res) {
                var xName = allResConfig.x[index];
                if(compareWithWorst){
                    allResConfig.y[index] = ((res / getWorstBestSoFar(xName))-1.0) * 100;
                }else{
                    allResConf