 						var bottom:Number = yMax - errorMinusVal;
 						
 						var points:Array = []
-						points.push(new Point(left, top));
-						points.push(new Point(right, top));
-						points.push(new Point(center, top));
-						points.push(new Point(center, bottom));
-						points.push(new Point(left, bottom));
-						points.push(new Point(right, bottom));
+						if (!_horizontalMode)
+						{
+							points.push(new Point(left, top));
+							points.push(new Point(right, top));
+							points.push(new Point(center, top));
+							points.push(new Point(center, bottom));
+							points.push(new Point(left, bottom));
+							points.push(new Point(right, bottom));
+						}
+						else
+						{
+							points.push(new Point(top, left));
+							points.push(new Point(top, right));
+							points.push(new Point(top, center));
+							points.push(new Point(bottom, center));
+							points.push(new Point(bottom, left));
+							points.push(new Point(bottom, right));
+						}
 						
 						
-						points.forEach(function(p) { 
-							dataBounds.projectPointTo(p, screenBounds)}
-						);
-						
-						
+						for each (var p:Point in points)
+						{
+							dataBounds.projectPointTo(p, screenBounds)
+						}
 						while (points.length != 0)
 						{
 							var a,b:Point;

					{
						var errorMinusVal:Number = errorPlusVal;
					}
					if (!_horizontalMode && !isNaN(errorPlusVal) && !isNaN(errorMinusVal))
					{
						var center:Number = (barStart+barEnd)/2;
						var width:Number = barEnd-barStart; 
						var left:Number = center-width/4;

							graphics.moveTo(a.x, a.y);
							graphics.lineTo(b.x, b.y);
						}
					}
				}
				//------------------------------------
