LineChart: How to have fixed interval on X-axis

Hi All,
I am flex newbie. I am trying to figureout how to have fixed interval (say 7) of X-axis in a LineChart. I have tried AxisRenderer, CategoryAxis and DateAxis to no avail. Can you refer to an example or a snippet which would help to resolve this problem.I have pasted my code here below. Thanks in advance.
<mx:LineChart 
id="DOLoginGraph" dataProvider="{doLoginGraphData}" paddingTop="10" width="100%" height="100%"
showDataTips="
true" backgroundElements="{gridLinesDOL}" >
<!-- vertical Value axis -->
<mx:verticalAxis>
<mx:LinearAxis baseAtZero="true" maximum="40" interval="10" />
</mx:verticalAxis>
<!-- Horizontal Date axis -->
<mx:horizontalAxis>
<mx:CategoryAxis id="horiDateAxis" categoryField="date" />
</mx:horizontalAxis>
<mx:horizontalAxisRenderers>
<mx:AxisRenderer placement="bottom" axis="{horiDateAxis}"/>
</mx:horizontalAxisRenderers>
<!-- Series -->
<mx:series>
<mx:LineSeries yField="value"  showDataEffect="{chartEffect}" form="curve" displayName="Open" >
<mx:lineStroke>
<mx:SolidColorStroke color="#32cd32" weight="2" alpha=".8"/>
</mx:lineStroke>
</mx:LineSeries>
</mx:series>
</mx:LineChart>

LinearAxis:
    //  interval
     *  @private
    private var _userInterval:Number;
    [Inspectable(category="General")]
     *  Specifies the numeric difference between label values along the axis.
     *  Flex calculates the interval if this property
     *  is set to <code>NaN</code>. 
     *  The default value is <code>NaN</code>.
     *  @langversion 3.0
     *  @playerversion Flash 9
     *  @playerversion AIR 1.1
     *  @productversion Flex 3
    public function get interval():Number
        return computedInterval;
     *  @private
    public function set interval(value:Number):void
        if (value <= 0)
            value = NaN;
        _userInterval = value;
        computedInterval = value;
        invalidateCache();
        dispatchEvent(new Event("axisChange"));

Similar Messages

  • Re: How to have more than one vertical axis in graphs...

    As a matter of fact, there is a library of dual-Y-axis controls, developed
    by National Instruments, but for some reason it did not make it into the
    official release. I've been using it under v.5.01 quite successfully. The
    only problem with it is that if you try to edit it using control editor, LV
    crashes (under v.5.1 and WinNT 4).
    -- Sergey Liberman
    -- Don't use Reply button! Thank you.

    I'm running into the same problem... can somewhere give me a pointer
    to where I might find a library like this? I have done the "put
    the y-axis on the right side of the second graph" and it works pretty
    well, but I'd like to see how other people might do it.
    Hopefully the LabView folk will also implement a scrollbar for X-Y plots
    (like they have for the charts) sometime... sometimes strip charts aren't
    sampled evenly.
    Andrew Berkley
    Physics Department
    University of Maryland
    RE:
    >> As a matter of fact, there is a library of dual-Y-axis controls, developed
    >> by National Instruments, but for some reason it did not make it into the
    >> official release...

  • TS4097 we have multiple users in our family and multiple devices all sharing one itunes account.  i think we are all synced to one icloud account and it is a nightmare....contacts lost, text messags showing up on multiple devises etc.  how do we fix this?

    We have our family sharing one itunes account.  we have 3 iphones, 2 macbook airs, 2 ipads and 1 mac.  I am not sure how we even got started on the icloud but somehow we did and everything is a mess.  The ipads are showing the text messages, the contacts are all combined, the apps that my duaghter downloads are appearing on all devices.  how do we fix this so contacts are not shared, messages are not shared and apps are not automatically synced to all devises?

    You have two different issues going on.  You are getting each other's messages because you are sharing the Same Apple ID for iMessage.  This can be corrected by going to Settings>Messages>Send & Receive on add the devices and doing one of the following:
    Either uncheck the email address shown under "You can be reached by iMessage at" on all of your devices; or
    If you want to continue to receive iMessages at this email address on one of your devices, on all of the other ones tap the Apple ID at the top, sign out, then sign back in using a different Apple ID (so all devices will be using a different Apple ID for iMessage).  Note: you can continue to share an Apple ID for purchasing from the iTunes and App stores.  It does not need to be the same as the ID you are using for iMessage, FaceTime and other services.
    The second issue is that you are sharing the same iCloud account on your devices.  When you do this any data you sync with the shared iCloud account such as contacts is merged and will appear on all devices connected to the account.  To fix this you both need to have separate iCloud accounts (you can continue to share the same Apple ID for purchasing from the iTunes and app stores). 
    First decide which device(s) will be keeping the current iCloud account.  On the one(s) that will be changing accounts, if you have any photos in photo stream that in your camera roll or backed up somewhere else that you want to keep on the device(s), save these to the camera roll by opening the photo stream album in the thumbnail view, tapping Edit, then tap all the photos you want to save, tap Share and tap Save to Camera Roll. 
    Once this is done, go to Settings>iCloud, scroll to the bottom and tap Delete Account.  (This will only delete the account from this device, not from iCloud.  The device(s) that will be keeping the account will not be effected by this.)  When prompted about what to do with the iCloud data, be sure to select Keep On [iDevice].  Next, set up a new iCloud account using a separate Apple ID (if you don't have one, tap Get a Free Apple ID at the bottom).  Then turn iCloud data syncing for contacts, etc. back to On, and when prompted about merging with iCloud, choose Merge.  This will upload the data to the new account.  Repeat this process for all the devices that you need to migrate to new accounts.
    When finished, to un-merge the data in your accounts you will have to go to icloud.com on your computer and sign into each iCloud account separately and manually delete the data you don't want (such as deleting the other person's contacts from your account, and vice versa).

  • I have rented a movie on apple tv and wish to finish it on my mac book air. When I open iTunes on my mac book air I can not see the movie in iTunes. It is an authorised device and I can see other purchases just. How do I fix it?

    I have rented a movie on apple tv and wish to finish it on my mac book air. When I open iTunes on my mac book air I can not see the movie in iTunes. It is an authorised device and I can see other purchases just. How do I fix it?

    Rented movies downloaded to an Apple TV can't be transferred to any other device.
    (86941)

  • I have an iPhone 4 and my lock button is jammed and I also can not touch anything on the left side of my screen well as any pop ups from the phone itself, so i can not get past the set up stage in reset process...how can i fix it/can it be fixed?

    I have an iPhone 4 and my lock button is jammed and I also can not touch anything on the left side of my screen well as any pop ups from the phone itself, so i can not get past the set up stage in reset process...how can i fix it/can it be fixed?

    Make an appointment at the genius bar and get the phone replaced.

  • I have recently updated my CC programs to the latest version and now all of my files wont open by default into their respective programs, only if I open the program and go to file open and open the file from there. How can I fix this?

    I have recently updated my CC programs to the latest version (CC2014) and now all of my files wont open by default into their respective programs, only if I open the program and go to file>open and open the file from there. How can I fix this?
    I have tried 'Open with' and the version of the program now installed on my computer isn't even suggested as an option and when I browse for it, the file wont open with it anyway

    On Windows (don't know about Mac), the latest version will always take over the file association, and become the default for indd files. It's impossible to change it.
    But there is a plugin for ID that makes this possible. Never tried it myself.
    https://www.rorohiko.com/wordpress/downloads/lightning-brain-soxy/

  • I have just reset my ipad as my apple id was disabled, but once reset I went to download an app and it said apple id disabled again?  What is wrong and how can I fix it?

    Someboby please help me.....THIS IS DOING MY HEAD IN!!  I have had to reset my Ipad as my apple Id has been disabled which reset fine but after the reset I have gone to download an app it was automatically disabled again.  Any ideas on why this is happening or how I can fix it would be awesome.

    Apple ID being disabled is a different error, and one not related to your iPad.
    Read: http://support.apple.com/kb/ts2446
    Hope this helps

  • I have an iphone 5 with iOS 6.  I just  tried to sync it with my itunes account to put new music on my phone and it gave me a message that said the iphone could not be synced b/c "the sync session had failed to start".  How do I fix this?

    I have an iphone 5 with ios 6.1.4.  I just tried to sync my phone to my itunes acct to load new music onto my phone and it gave me a message saying that it was unable to sync b/c "the sync session failed to start".  It let me download all pictures, but would not let me do anything else and just kept repeating the same message.  Why is this happening and how do I fix it?

    You need to subscribe to iTunes Match to store your music on iCloud:
    http://www.apple.com/itunes/itunes-match/
    To transfer iTunes Store purchases made on your phone to your computer, connect your phone then choose "Transfer purchases..." from the File menu in iTunes.
    Photostream transfers photos taken on your iOS devices to other devices and your computer. For troubleshooting Photostream see: http://support.apple.com/kb/TS3989

  • I have photo sharing turned on, on both my Iphone 5 an my PC Icloud control panel but yet my pictures will not show up on my PC, how do I fix this?

    I have photo sharing turned on, on both my Iphone and my PC icloud control panel, however my pictures will not show up on my PC how can i fix this?
    I had a previous problem with this with my old iphone 4 and did not realize there was an issue until it was stolen. I would like to get this straightened out just in case anything ever happens with this phone.
    Thank you in advance for any help.

    Hey LBert7,
    I would try the recommended steps in the following article:
    iCloud: My Photo Stream troubleshooting
    http://support.apple.com/kb/TS3989
    Welcome to Apple Support Communities!
    Take care,
    Delgadoh

  • How do i download the new software onto my computer so then i can install the new itunes? i dont have the mac app thing either and it wont let me do it from the itunes because my server is not working. how do i fix it?

    Hey so i have a version of a mac i think it is kinda old, it is the all white one i got it like 4 years ago maybe. I got a new ipod recently and i cannot downloade any music onto it. this is because i tried to download the new itunes which it said i needed and now when i try to install it. It says i need a new software so i try to download that and is says i need the mac app or something. but it says i need the new software to get that. so i went onto itunes and clicked the apple and pressed new software and it goes onto this little thing that says my internet is alright but my server has not been connecting. My computer is connected to my school and they updated the server thing and now it wont connect, so i can't win. how do i fix this and download everything i neew?

    First things first: Pull down the Apple Menu and select "about this Mac" and tell us what version of OS X is currently on your computer.

  • I have recently bought a macbook and am using outlook 2011 as email. i am getting an error message 4.7.0 not allowed when sending emails how do I fix?

    i have a macbook and am using outlook 2011 as email.   receiving okay.   sending okay sometimes.  am now getting error message 4.7.0 not allowed when sending.  what is the cause? how do I fix please?

    I have discovered that the emails have in fact been sent but much later, maybe it's a network problem with the people i am sending it to.  so i checked my sent items and they are there, but at the time the email doesn't go straight into the sent box or drafts so i'm assuming it's disappeared and type it again.  i'll keep going with it, until someone can give me a possible solution or explanation as to what is happening.

  • How can i fix my iphone i can't update or download apps, when i try it tells me toput my credit card info and i do but when i push done it tells me my payment has been declined, but why do i have to pay to update or download free apps. How can i fix this?

    how can i fix my iphone i can't update or download apps, when i try it tells me toput my credit card info and i do but when i push done it tells me my payment has been declined, but why do i have to pay to update or download free apps. How can i fix this?

    You must contact iTunes support to get the problem resolved.
    http://www.apple.com/support/itunes/contact/
    If there is a problem with your account or payment info, you cannot
    download anything (including free apps or updates) until the matter
    is resolved.
    In countries where the iTunes Store only sells apps, the accepted payment methods are Visa, MasterCard, and American Express. Other payment types such as gift cards, store credit, monthly allowances, ClickandBuy, and PayPal are not accepted. Depending on your App Store country, prices may be listed in your local currency, US Dollars, or Euros.    http://support.apple.com/kb/HT5552

  • I have my apple i.d set in my phone but when i go to download an app it has a different i.d how do i fix this

    i have my apple i.d set in my phone but when i go to download an app it has a different i.d how do i fix this

    If you are UPDATING your app, it may be because that previous app was downloaded using another Apple ID.
    If not, you can try going to:
    Settings>iTunes & App Stores>Tap the top bar with your Apple ID>Sign Out and then Sign back in
    This may fix the issue you are having with it wanting to use another Apple ID.

  • My brand new mac pro always had Internet connection issues at school. WHY is that? I see the school's Internet working perfectly fine on other PC's, but there is never a day where my mac doesn't have Internet connection issues at school. How do I fix it?

    I got my mac pro in the middle of August. School started the week after. Internet was working perfectly fine at home. But at school, I never had a good connection. Sometimes on the good days I get a connection when I'm sitting at the exact spot in class I always sit at. It's ridiculous and it's frustrating. I invested my money into this laptop and I'm beginning to regret it. I thought it was the school's Internet, but I don't see Internet issues with other PC users. It's most frustrating on registration days and I'm trying to register for my classes before it gets taken, but again... Internet connection issues. It's random. Majority of the time, it doesn't work at all. I've done Network Diagnosis and turning WiFi off then turning it on again. I've done everything I could. I put my money on this laptop and it was a lot of money. I could have bought an 800 dollars laptop and I would have Internet connection anywhere on campus. So, I don't want to continue everyday to regret on buying this laptop every time I try to connect to the Internet at school or Starbucks or anywhere else. How do I fix this? What's the problem ?
    At school, I heard this guy had a problem with Internet connections too and he owned a new mac book pro. He said something like Apple messed up on something, but he fixed it. If I knew mac book pro's had these issues I wouldn't have bought it in the first place. It's freezing on me every other day. It's ridiculous. But what concerns me the most is the Internet connection. So someone please tell me what can I do next to prevent the problem? Am I doing something wrong maybe?

    Hi Kevin,
    I'm using an XLR input mic which is connected to the phantom power enabled XLR mic socket on a USB M-Audio M-Track. The M-Track is connected by USB to the Mac Pro - so effectively I've got an M-Audio USB soundcard with a mic input.  I've also tried a microphone that is a straight XLR to USB cable (guessing with some soundcard chip buried in the usb plug) but that also yields the same effect of bad latency, intermittent quality, stuttering and repeating and echoing (without the speakers on during record so its not feedback).
    The mic works absolutely fine with other recording applications I have on the mac at the moment - albeit non-adobe ones (tested it on the EasyAudioRecorder - and it lives up to its name. it's easy)
    I will try with Audition and report back, but sitting here right now I can imagine it would work fine with audition too - it just seems to be the way premiere is set up for recording into the timeline is a bit sketchy.  I'm willing to accept it might well be a quirk with the new Mac Pro trashcan - I'm not weighting all the woes on premiere.
    Any thoughts or am I out of luck to sit with my fingers crossed for a fix in the next round of updates?
    Nathan.

  • I have like five GB's of ghost data (data the device claims is not there but it is still taking up space) on my I pad 2 from a failed movie download attempt. How do I fix that with out resting my iPad? I have only 1GB left of storage

    I have like five GB's of ghost data (data the device claims is not there but it is still taking up space) on my I pad 2 from a failed movie download attempt. How do I fix that with out resting my iPad? I have only 1GB left of storage
    The movie had gotten to the point that I could watch it all the way through but it still said processing and got stuck at that point and when I turned off the wifi to try to restart it, it deleted its-self but did not free up any of the storage It was taking up
    Restarting my iPad does not help
    Some thing similar also happened to my old laptop when trying to download the iOS 5 update to my laptop when it came out. It kept getting disconnected and every time it would try to start over and act like what had already been downloaded was not there though it was still taking up the storage space.
    And it continued repeating until it took up all of my storage space. The data file would not show up anywhere so I had to restore my laptop to the factory settings and that worked for awhile but I eventually had to get a new laptop.

    Did you try to set it up as new device, as explained in this article?
    How to erase your iOS device and then set it up as a new device or restore it from backups
    If this does not work, use iTunes to set it back to factory settings, which would also install the latest software:
    Use iTunes to restore your iOS device to factory settings - Apple Support

Maybe you are looking for

  • DISPLAY FONT ISSUES IN OUTLOOK FOR IMAC

    I have an IMac, Lion operating system.  For some unknown reason, my digests from yahoogroups now download in a horrible, almost unreadable font.  I just want the old default, easier-to-read font to display.  Does anyone know how to reset this?  I did

  • Final Cut Pro 7.0.3 XDCAM Issues

    Having problems with Final Cut Pro 7.0.3 on a feature with XDCAM EX 1080p 24p Using Sony cinemon plug-in to work natively with .mp4 files and Matrox mini MX02 on 2.2ghz quad i7 17inch macbook pro with 8gb ram and 2nd external monitor via mini-display

  • An album has disappeared from my library and purchase history, how do i get it back?

    i bought an album on Christmas day and have had it since, went on iTunes to listen to it and it was gone, went into purchase history to re-download it and it was gone from there, how do i get it back as it cost me £10.99 and i don't want to have to r

  • Safe to turn off time capsule when not using it?

    Should you turn off your time capsule when you are not using it or should you just leave it on all of the time?? I really don't want it to die on me... Thank you.

  • Layer double-click not working in Vista

    I am doing a Total Training class on CS4 PhotoShop. In the section on Learning about Layers I have opened two jpg files. I double-clicked on the Background Layer of the Statue jpg and changed the name to Statue. All worked okay. I then selected the u