Skip to main content
August 14, 2006
Question

Realtime chart as flash

  • August 14, 2006
  • 3 replies
  • 566 views
Most online explanations of "dynamic" charts call for the user to click a button to re-query the DB to display new data. What I need is a chart that updates in realtime...if the DB changes, then the chart changes....like the speedometer on your car goes up and down as your speed changes.

At this point I would just like to know if it can be done, and what technologies I need to study....

Flash remoting?
Ajax?
Web services?

Does anyone know?
This topic has been closed for replies.

3 replies

Inspiring
August 14, 2006
RG_100 wrote:
> tks for the feedback....my read of Flex says it is a development environment
> itself, apart from CF. Are you saying that it can be used within CF charting to
> get the results I need?

use flex charts instead of cfchart. the FDS bits will push updated data
out to the clients' charts. cf on the back & flex on the front is a
killer combo.

btw FDS is free for up to 100 clients.
August 14, 2006
tks for the feedback....my read of Flex says it is a development environment itself, apart from CF. Are you saying that it can be used within CF charting to get the results I need?

I was actually hoping that the answer would be some kind of scripting inside the cfchart tag that retrieved new data from the server and instructed the chart to re-draw continuously.....
August 14, 2006
I had a similar problem refreshing a grid (I'm in a Flash Remoting app). Wrote an Actionscript function on that page to call a service that called a function to re-fetch the data. Then used setInterval to force the Actionscript function to fire every 60 seconds. Also added a button to call the function manually if a user just can't wait. I've not done much charting but I think it would work the same.

I'll be rewriting my app into Flex soon in order to get the automatic real-time refresh I really want.
Inspiring
August 14, 2006
RG_100 wrote:
> Most online explanations of "dynamic" charts call for the user to click a
> button to re-query the DB to display new data. What I need is a chart that
> updates in realtime...if the DB changes, then the chart changes....like the
> speedometer on your car goes up and down as your speed changes.
>
> At this point I would just like to know if it can be done, and what
> technologies I need to study....


http://www.adobe.com/products/flex/ w/FDS to do server data pushes.