NSArray valueList = model().hList();
if(true) {
dataList = model().hList();
valueList = model().vList();
}
DRGroup dayGroup = (DRGroup) dataList.objectAtIndex(0);
DRSubMasterCriteria daySubMasterCriteria = (DRSubMasterCriteria) dayGroup.masterCriteria().subCriteriaList().objectAtIndex(0);
String dayKey = daySubMasterCriteria.keyDesc();
NSArray dayCriterias = dayGroup.sortedCriteriaList();
Format dayFormat = DRCriteria.formatterForFormat(daySubMasterCriteria.format());
NSMutableDictionary coordinates = new NSMutableDictionary();
for(Enumeration en = valueList.objectEnumerator(); en.hasMoreElements();) {
DRGroup mainGroup = (DRGroup)en.nextElement();
DRSubMasterCriteria mainSubMasterCriteria = (DRSubMasterCriteria) mainGroup.masterCriteria().subCriteriaList().lastObject();
String mainKey = mainSubMasterCriteria.keyDesc();
NSArray mainCriterias = mainGroup.sortedCriteriaList();
for (Enumeration values = mainCriterias.objectEnumerator(); values.hasMoreElements();) {
DRCriteria mainCriteria = (DRCriteria)values.nextElement();
String label = (String) mainCriteria.valueDict().objectForKey(mainKey);
coordinates.setObjectForKey(mainCriteria, mainGroup.masterCriteria().keyDesc());
if(!mainCriteria.isTotal()) {
for (Enumeration days = dayCriterias.objectEnumerator(); days.hasMoreElements();) {
DRCriteria dayCriteria = (DRCriteria)days.nextElement();
Object o = dayCriteria.valueDict().objectForKey(dayKey);
if(!dayCriteria.isTotal()) {