Welcome to WebmasterWorld Guest from

Forum Moderators: phranque

Message Too Old, No Replies

Dynamic graphic (like stock quote chart), how to implement?



3:13 am on Mar 8, 2009 (gmt 0)

10+ Year Member

I want to generate dynamic graphic (animation?) driven by data from another website.

It will be exactly like stock quote chart available in most finance website, ie: stock price changes every a few seconds automatically without refreshing the page.

Any suggestion?


(Script language + AJAX or Flash implementation preferred)


3:44 pm on Mar 8, 2009 (gmt 0)

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member

The dynamic graphics can be drawn with php/perl using GD libraries or ImageMagick. You could do it with Flash, but if you do it server-side, it won't be Flash-dependent.

You'd probably want to use Ajax/JS if the data comes from an external site to refresh the values every few seconds. I'd be very frugal about what you do if you do this every few seconds, refreshing a few bytes of text would be OK but if you redraw the graphic every few seconds it could be intensive on your server, or intensive on the client if you use Flash.


7:31 pm on Mar 9, 2009 (gmt 0)

10+ Year Member

Thanks for reply.

Both table and graphic are dynamically generated and continuously updated without reloading the entire page.

[edited by: txbakers at 11:21 pm (utc) on Mar. 9, 2009]
[edit reason] no URL drops please. [/edit]


10:17 pm on Mar 14, 2009 (gmt 0)

5+ Year Member

I've used a product called amcharts before-- it does a good flash graph built from XML you generate dynamically (I use PHP). I think he's recently built out a stock-specific tool.



Featured Threads

Hot Threads This Week

Hot Threads This Month