                 {
                     stackedValue = 0;
                 }
-                if (xValue == 0)
-                {
-                    chartItem.xValue = 0;
-                    chartItem.minValue = 0;
-                }
-                else
-                {
-                    chartItem.xValue = xValue + stackedValue;
-                    chartItem.minValue = stackedValue;
-                }
-                xValue += stackedValue;
-                stackedYValueDictionary[yValue] = xValue;
-                chartItem.yValue = yValue;
-                maxValue = Math.max(maxValue,xValue);
-                
+				if (xValue != 0)
+				{
+					chartItem.xValue = xValue + stackedValue;
+					chartItem.minValue = stackedValue;
+					
+					xValue += stackedValue;
+					stackedYValueDictionary[yValue] = xValue;
+					chartItem.yValue = yValue;
+					maxValue = Math.max(maxValue,xValue);
+				}
                 i++;
                 cursor.moveNext();              
             }           

                }
                if (xValue == 0)
                {
                    chartItem.xValue = 0;
                    chartItem.minValue = 0;
                }
                else
                {

                    stackedNegYValueDictionary[yValue] = xValue;
                    minValue = Math.min(minValue,xValue);
                }
                chartItem.yValue = yValue;               
                i++;
                cursor.moveNext();              
            }           
