2

Are there any good libraries available for plotting candlestick and other types of financial charts in Ruby? I saw this similar post from over a year ago. The presented options that fit my needs from that post were Python, however.

EDIT:

One requirement is that I need real-time charts, updating multiple times a second.

Community
  • 1
  • 1
John Dibling
  • 99,718
  • 31
  • 186
  • 324

1 Answers1

3

The google chart API supports candlestick charts, among other things.

There are a few gems that automate this: googlecharts, gchartrb. I haven't used them but they look like a good first cut.

Here's a quick example from the docs:

Candlestick example:

Community
  • 1
  • 1
Paul Rubel
  • 26,632
  • 7
  • 60
  • 80
  • I need real-time charts, updating multiple times per second. I thought Google Charts was static. Am I mistaken? – John Dibling Aug 25 '10 at 02:32
  • I suppose you could make multiple queries to change the view but as far as I know there is a one-to-one mapping of URLs to images. – Paul Rubel Aug 25 '10 at 13:03
  • html/javascript timed reload? also http://stackoverflow.com/questions/1775836/ruby-charting-library and http://ruby-toolbox.com/categories/graphing.html might be interesting to you – rogerdpack Aug 25 '10 at 13:09