             }
             else
             {
-            	var n:int = arrItems.length;
+                var n:int = arrItems.length;
                 for (var i:int = 0; i < n; i++)
                 {
                     seriesObject.addItemtoSelection(arrItems[i]);


            localPts.x = Math.max(rc.left, Math.min(hitData.x, rc.right));
            localPts.y = Math.max(rc.top, Math.min(hitData.y, rc.bottom));
			var pts:Point = localToGlobal(localPts);			
			
            var xpos:Number;
            var ypos:Number;

            if (tipInstance is ILayoutManagerClient)
                ILayoutManagerClient (tipInstance).validateSize();
			
			//if current systemManager is not sandbox root,
			// marshalling support is enabled and localToGlobal does not give
			// expected result because current sub application becomes top level
			// In such cases, sub-application's offset needs to be subtracted
			// from obtained localToGlobal values.
			// http://bugs.adobe.com/jira/browse/FLEXDMV-2536
			if(systemManager != systemManager.topLevelSystemManager.getSandboxRoot())
			{
				var appOffset:Point = FlexGlobals.topLevelApplication.localToGlobal(new Point(0,0));
				data = new TipPositionData(tipInstance, hitData,
					localPts.x, localPts.y, pts.x - appOffset.x, pts.y - appOffset.y);						
			}
			else
			{
				data = new TipPositionData(tipInstance, hitData,
					localPts.x, localPts.y, pts.x, pts.y);
			}      
                        
            if (data.gy - dataTipVOffset - tipInstance.measuredHeight > 0)
                data.py = data.gy - dataTipVOffset - tipInstance.measuredHeight;

        super.addEventListener(type, listener, useCapture,
                               priority, useWeakReference);
    }
    
    /**
     *  @private
     */
    private function initStyles():Boolean
    {
        HaloDefaults.init(styleManager);
        
        var chartBaseFill:IFill = IFill(new SolidColor(0xFFFFFF, 0));
        
        var selector:CSSStyleDeclaration =
            HaloDefaults.createSelector("mx.charts.chartClasses.ChartBase", styleManager);
        
        selector.defaultFactory = function():void
        {
            this.chartSeriesStyles = HaloDefaults.chartBaseChartSeriesStyles;
            this.fill = chartBaseFill;
            this.calloutStroke = new Stroke(0x888888,2);            
            this.dataTipRenderer = DataTip;
            this.fontSize = 10;
        }
        
        return true;
    }

    //--------------------------------------------------------------------------
    //
