Results 1 to 4 of 4

Thread: Update Chart automatically when data is added to its dataProvider

  1. #1
    Join Date
    Oct 2009
    Posts
    5

    Update Chart automatically when data is added to its dataProvider

    Hi, i have prepared a project which displays charts, which i want to be updated every second. I have used Flex to prepare my charts, which uses a php file as its dataProvider. The charts are visible to me, but what i want is there to be a updated chart every second. has anyone tried out this???

  2. #2
    Join Date
    Apr 2008
    Posts
    1,948

    Re: Update Chart automatically when data is added to its dataProvider

    I was developing a similar project, but my data was coming from an XML file, not such a big difference. What i think you must do is, make the data Bindable and use an ArrayCollection or XMLListCollection object to hold the data. You can use the socket events to grab new data into the flash file. in case you are still not getting it, please do post here.

  3. #3
    Join Date
    Apr 2008
    Posts
    264

    Re: Update Chart automatically when data is added to its dataProvider

    I was stuck up on the same thing some time back, but i somehow sorted that out, but then there cropped another error that i am trying to fix. the error is somewhat like this cannot convert mx.managers:ragManagerImpl@3a0cd09 to mx.managers.IDragManager. And it occurs only when i load and unload more than two times. Don't see any problems from my side. does anyone have any idea about it..???

  4. #4
    Join Date
    Oct 2009
    Posts
    5

    Re: Update Chart automatically when data is added to its dataProvider

    Hey thanks for help buddies, i am able to start and run the code, with the requisite results. My code was something like this;
    Code:
    public function counter():void { 
    var count:counter = new Timer(10000); 
    count.addEventListener(TimerEvent.TIMER, updateData); 
    count.start(); 
    }
    hooray my charts are getting refreshed now

Similar Threads

  1. New networks added to ZoneAlarm Trusted Zone automatically
    By The#Gaelic in forum Networking & Security
    Replies: 7
    Last Post: 02-03-2012, 10:20 AM
  2. There is no data in Excel Pie Chart
    By Tarani in forum MS Office Support
    Replies: 2
    Last Post: 25-02-2012, 12:27 PM
  3. How to create alphanumeric data chart in Excel
    By Shaina Na in forum Windows Software
    Replies: 2
    Last Post: 07-01-2012, 06:00 PM
  4. Last name are getting added automatically on the iPhone
    By Pomona in forum Portable Devices
    Replies: 3
    Last Post: 19-12-2010, 11:08 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,618,645.68404 seconds with 16 queries