473,387 Members | 1,899 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

line chart horizontal Axis Points problome

Hi all
i am using flex chart and this is the code
Expand|Select|Wrap|Line Numbers
  1. <mx:AxisRenderer xmlns:mx="http://www.adobe.com/2006/mxml" tickPlacement="none"
  2.                  labelRotation="50" fontFamily="Myriad Pro" fontSize="15" fontAntiAliasType="normal">
  3.     <mx:labelRenderer>
  4.         <mx:Component>
  5.             <mx:Label >
  6.                 <mx:Script>
  7.                 <![CDATA[
  8.                     import mx.collections.ArrayCollection;
  9.                     import com.weightwatchers.framework.vo.LightTrackerDayVO;
  10.                     import com.weightwatchers.progressReport.model.ProgressReportModelLocator;
  11.                 override public function set data(value:Object):void
  12.                 {
  13.                     var daysCollection :ArrayCollection;
  14.                     var day: LightTrackerDayVO;
  15.                     var weeks:ArrayCollection;
  16.                     var number:int;
  17.                     var date:int;
  18.                     var dateTime:int;
  19.                     var month:int;
  20.  
  21.                    super.data = value;
  22.                    daysCollection = ProgressReportModelLocator.instance.lastFourWeeksDays;
  23.  
  24.                    if (value != null && value.hasOwnProperty("position"))
  25.                    { 
  26.                            date =  parseInt(value.value.date);
  27.                            dateTime = parseInt(value.value.time);
  28.                            month =  parseInt(value.value.month+1);
  29.                            for(number=0; number < daysCollection.length ; number++)
  30.                         {
  31.                             if (number==0 || number==7 ||number==14 ||  number==21)
  32.                                {
  33.                                    day = ProgressReportModelLocator.instance.lastFourWeeksDays.getItemAt(number)as LightTrackerDayVO;
  34.  
  35.                                    if (checkDate(day.ApplicableDate.time,dateTime))
  36.                                    {
  37.                                        text  = date+"/"+month;
  38.                                        break;
  39.                                    }
  40.                                }
  41.                             else
  42.                             {
  43.                                    text = "";
  44.                                    width = 0;
  45.                             }
  46.  
  47.                         }
  48.                    }
  49.                    else if (value != null && !value.hasOwnProperty("position"))
  50.                    {
  51.                            text  = date+"/"+month;
  52.                    }
  53.                    /*else if (value != null && !value.hasOwnProperty("position"))
  54.                    {
  55.                            text  = date+"/"+month;
  56.                    }*/
  57.  
  58.                 }
  59.  
  60.                 /**
  61.                 * @private
  62.                 * 
  63.                 */
  64.                 private function checkDate(day:int,date:int):Boolean
  65.                 {
  66.                        if (date == day)
  67.                        {
  68.                            return true;
  69.                        }
  70.                        else
  71.                        {
  72.                            return false;
  73.                        }
  74.                 }
  75.                 ]]>
  76.                 </mx:Script>
  77.             </mx:Label>
  78.         </mx:Component>
  79.     </mx:labelRenderer>
  80. </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
Jan 13 '11 #1
0 1427

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Frank | last post by:
I've written a jsp that retrieves data from a sybase table via the sql JSTL. Two colums of data are returned, date and value. Currently the data is placed in an HTML table. Does anyone know of...
3
by: Serdar C | last post by:
hello there.. there used to be a usefull and simple control on vb6.0 which was a line chart.. it was quite easy to use.. but in c# theres a pani named "crystal reports" and its too much complicated...
5
by: Zach | last post by:
Hi, I am completely new to VC#.NET graphics code and would like some help to stop me wasting my time up blind alleys. I am looking for a line charting code example. Nothing posh or airy...
5
by: Bruce Schechter | last post by:
I need to generate a series of line charts dynamically from ADO.NET data in a C#, ASP.NET application. I've read several articles about using GDI+ to render graphs into a bitmap image and then to...
1
by: Scott H. | last post by:
Hello: I am trying to use Crystal Reports from VS.NET 2003 to produce a simple line chart, where the x axis represents the number of measurements taken and the y axis represents the range of...
4
by: =?Utf-8?B?bWFydGluMQ==?= | last post by:
Hi, All, I want to draw line chart on the web using visual basic 2005, vb 2005 doesn't have chart components, so can anyone point out where I can start working this? Thanks, Ma
1
by: shaziya | last post by:
Hello there, I have one crystal report in VisulaStudio 2003 C#, i have used IGraphObject for Line Chart. My data is somewhat like this 0.00, 0.01, 0.03 ....etc on y axis and...
6
craigfr
by: craigfr | last post by:
I am looking to compare this year's defects to last year's defects (by month) with a two-line graph. So I will need a line chart with two different lines, one that shows YTD # of defects and another...
1
by: bandy | last post by:
HI there, Need Help... This is data file's result: { "elements": , "dot-style": { "type": "dot", "tip": "#val#", "dot-size": 5, "colour": "#DFC329" }, "width": 2, "colour": "0x9933CC", "tip":...
3
by: Sean Tech | last post by:
Hello Everyone, I have run into a problem with creating a line chart in access. My ultimate goal is to have the chart produce monthly totals for the salesmen and also show there quotas for the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.