Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , ,

Sponsored Links



Update Chart automatically when data is added to its dataProvider

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 05-11-2009
Member
 
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???
Reply With Quote
  #2  
Old 05-11-2009
Praetor's Avatar
Member
 
Join Date: Apr 2008
Posts: 1,937
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.
Reply With Quote
  #3  
Old 05-11-2009
spuff's Avatar
Member
 
Join Date: Apr 2008
Posts: 265
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..???
Reply With Quote
  #4  
Old 05-11-2009
Member
 
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
Reply With Quote
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Update Chart automatically when data is added to its dataProvider"
Thread Thread Starter Forum Replies Last Post
How to create alphanumeric data chart in Excel Shaina Na Windows Software 2 07-01-2012 06:00 PM
In cloudme the MSN is added to instant messenger automatically Aanisah Technology & Internet 5 17-06-2011 01:09 AM
Last name are getting added automatically on the iPhone Pomona Portable Devices 3 19-12-2010 11:08 AM
Mark data points in Excel line chart Amie Windows Software 3 11-06-2009 08:50 PM
Can Users be automatically added a group ? Frogbeef Active Directory 3 24-04-2009 05:44 AM


All times are GMT +5.5. The time now is 11:14 AM.