开发者

Creating price and volume chart with flot

开发者 https://www.devze.com 2023-01-27 17:39 出处:网络
I have a live feed for prices and volumes of stocks traded which I\'d like to graph on a web page - after looking around it seems l开发者_JAVA百科ike flot might a good choice, though I can\'t see any

I have a live feed for prices and volumes of stocks traded which I'd like to graph on a web page - after looking around it seems l开发者_JAVA百科ike flot might a good choice, though I can't see any specific (code) examples for how to produce this type of chart, or how to dynamically load live data.

Any pointers appreciated.


This guy seems to be using it for stocks:

http://tusacciones.com/prestadas/historico/#CIE AUTOMOT

Hopefully everything you need is there since it's Javascript...


Here are examples on how to update Flot using AJAX:

http://people.iola.dk/olau/flot/examples/ajax.html

You could use a line chart like the examples and just change the axis increments to however often your live feed is updated.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号