=== modified file 'local/in/dhis-web-dashboard/src/main/java/org/hisp/dhis/dashboard/ga/action/charts/GenerateChartDataAction.java' --- local/in/dhis-web-dashboard/src/main/java/org/hisp/dhis/dashboard/ga/action/charts/GenerateChartDataAction.java 2010-07-23 13:05:37 +0000 +++ local/in/dhis-web-dashboard/src/main/java/org/hisp/dhis/dashboard/ga/action/charts/GenerateChartDataAction.java 2010-08-30 13:37:40 +0000 @@ -341,6 +341,11 @@ { this.ougSetCB = ougSetCB; } + + public String getOugSetCB() + { + return ougSetCB; + } private String aggDataCB; @@ -878,13 +883,14 @@ { decoc = dataElementCategoryService.getDefaultDataElementCategoryOptionCombo(); } - String values = selectedOrgUnit.getId() + ":"+ dElement.getId() + ":"+ decoc.getId() + ":" + p.getId(); - selectedValues.add(values); if( deSelection.equalsIgnoreCase( "optioncombo" ) ) { if( ougSetCB == null ) { + String values = selectedOrgUnit.getId() + ":"+ dElement.getId() + ":"+ decoc.getId() + ":" + p.getId(); + selectedValues.add(values); + if( aggDataCB == null ) { DataValue dv1 = dataValueService.getDataValue( selectedOrgUnit, dElement, p, decoc ); @@ -956,6 +962,9 @@ if ( ougSetCB == null ) { + String values = selectedOrgUnit.getId() + ":"+ dElement.getId() + ":"+ decoc1.getId() + ":" + p.getId(); + selectedValues.add(values); + if ( aggDataCB == null ) { DataValue dv1 = dataValueService.getDataValue( selectedOrgUnit, dElement, p, decoc1 ); === modified file 'local/in/dhis-web-dashboard/src/main/webapp/dhis-web-dashboard/graphicalAnalysisResult.vm' --- local/in/dhis-web-dashboard/src/main/webapp/dhis-web-dashboard/graphicalAnalysisResult.vm 2010-08-06 13:04:55 +0000 +++ local/in/dhis-web-dashboard/src/main/webapp/dhis-web-dashboard/graphicalAnalysisResult.vm 2010-08-30 13:37:40 +0000 @@ -424,7 +424,7 @@ $yseriesList.get($count1) #foreach($data in $onedataList) - #if( $categoryLB.equals( "period" ) ) + #if( $categoryLB.equals( "period" ) && !$ougSetCB ) $data #set( $count3 = $count3 + 1 ) #else