line chart horizontal Axis Points problome

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ITProgrammer985
    New Member
    • May 2010
    • 13

    line chart horizontal Axis Points problome

    Hi all
    i am using flex chart and this is the code
    Code:
    <mx:AxisRenderer xmlns:mx="http://www.adobe.com/2006/mxml" tickPlacement="none"
    				 labelRotation="50" fontFamily="Myriad Pro" fontSize="15" fontAntiAliasType="normal">
    	<mx:labelRenderer>
    		<mx:Component>
    			<mx:Label >
    				<mx:Script>
    				<![CDATA[
    					import mx.collections.ArrayCollection;
    					import com.weightwatchers.framework.vo.LightTrackerDayVO;
    					import com.weightwatchers.progressReport.model.ProgressReportModelLocator;
                    override public function set data(value:Object):void
                    {
                    	var daysCollection :ArrayCollection;
                    	var day: LightTrackerDayVO;
                    	var weeks:ArrayCollection;
                    	var number:int;
                    	var date:int;
                    	var dateTime:int;
                    	var month:int;
                    	
    				   super.data = value;
    				   daysCollection = ProgressReportModelLocator.instance.lastFourWeeksDays;
    				   
    				   if (value != null && value.hasOwnProperty("position"))
    				   { 
    				   		date =  parseInt(value.value.date);
    				   		dateTime = parseInt(value.value.time);
    				   		month =  parseInt(value.value.month+1);
    				   		for(number=0; number < daysCollection.length ; number++)
    						{
    							if (number==0 || number==7 ||number==14 ||  number==21)
    					   		{
    					   			day = ProgressReportModelLocator.instance.lastFourWeeksDays.getItemAt(number)as LightTrackerDayVO;
    
    					   			if (checkDate(day.ApplicableDate.time,dateTime))
    						   		{
    						   			text  = date+"/"+month;
    							   		break;
    						   		}
    					   		}
    							else
    							{
    						   		text = "";
    						   		width = 0;
    							}
    					   		
    						}
    				   }
    				   else if (value != null && !value.hasOwnProperty("position"))
    				   {
    				   		text  = date+"/"+month;
    				   }
    				   /*else if (value != null && !value.hasOwnProperty("position"))
    				   {
    				   		text  = date+"/"+month;
    				   }*/
    				   
                    }
                    
                    /**
                    * @private
                    * 
                    */
                    private function checkDate(day:int,date:int):Boolean
                    {
    		   			if (date == day)
    			   		{
    			   			return true;
    			   		}
    			   		else
    			   		{
    			   			return false;
    			   		}
                    }
                    ]]>
                    </mx:Script>
    			</mx:Label>
    		</mx:Component>
    	</mx:labelRenderer>
    </mx:AxisRenderer>
    the problem is the labels in x-axis is appearing in a very small font i tried to chang the font size the font famiy and using gutters nothing worked please any one have a solution
    thanks
Working...