# Graphing in ruby

**URL:** <https://www.ruby-forum.com/t/graphing-in-ruby/116106>\
**Category:** Rails\
**Created:** [October 2, 2007, 1:03pm UTC](https://www.ruby-forum.com/t/graphing-in-ruby/116106 "2007-10-02T13:03:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tom-mac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/bc8723/32.png) [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Post date:** [October 2, 2007, 1:03pm UTC](https://www.ruby-forum.com/t/graphing-in-ruby/116106/1 "2007-10-02T13:03:48Z")

</div>

I need to do some x /y plots in ruby for a rails app, with a log scale,  
does  
anyone know of any gems / libraries that can do this.  
Tom

---

<div class="post-metadata">

**Author:** ![tom-mac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/bc8723/32.png) [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Post date:** [October 2, 2007, 1:17pm UTC](https://www.ruby-forum.com/t/graphing-in-ruby/116106/2 "2007-10-02T13:17:55Z")

</div>

On 2 Oct 2007, at 12:03, Tom M. wrote:

> I need to do some x /y plots in ruby for a rails app, with a log  
> scale, does anyone know of any gems / libraries that can do this.

gruff is pretty nice, but doesn’t do the log scale out of the box. It  
shouldn’t be hard to do the log bit yourself though. There’s also  
scruffy, but I haven’t used that one

Fred

---

<div class="post-metadata">

**Author:** ![tom-mac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/bc8723/32.png) [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Post date:** [October 2, 2007, 1:30pm UTC](https://www.ruby-forum.com/t/graphing-in-ruby/116106/3 "2007-10-02T13:30:47Z")

</div>

Check out ChartDirector:

> **[ChartDirector Chart Component and Control Library for .NET (C#/VB), Java,...](https://www.advsofteng.com/)**
>
> Universal chart and graph component and control library for .NET (C#/VB), Java, C++, ASP, COM, PHP, Perl, Python.
> Extensive chart types, supports track cursors, zoom/scroll, viewports and other mouse interactions. 
> Suitable for web as well as...

---

<div class="post-metadata">

**Author:** ![tom-mac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/bc8723/32.png) [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Post date:** [October 3, 2007, 7:18am UTC](https://www.ruby-forum.com/t/graphing-in-ruby/116106/4 "2007-10-03T07:18:15Z")

</div>

[http://blogs.tech-recipes.com/johnny/2006/08/29/ruby-on-rails-beautiful-charts-made-easy-using-flash-with-rails-rxml-templates/](http://blogs.tech-recipes.com/johnny/2006/08/29/ruby-on-rails-beautiful-charts-made-easy-using-flash-with-rails-rxml-templates/)  
this works for me, the basic idea is generate xml on server side and  
use a flash program on the client to build the plot.

There is also some plugins around that do the same … but they work  
with the same flash library and ideas.

---

<div class="post-metadata">

**Author:** ![tom-mac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/bc8723/32.png) [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Post date:** [October 2, 2007, 1:34pm UTC](https://www.ruby-forum.com/t/graphing-in-ruby/116106/5 "2007-10-02T13:34:53Z")

</div>

- Tom M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) [Oct 02. 2007 13:03]:

> I need to do some x /y plots in ruby for a rails app, with a log scale, does  
> anyone know of any gems / libraries that can do this.

gdchart (see [http://raa.ruby-lang.org/project/gdchart](http://raa.ruby-lang.org/project/gdchart)) is quite good  
although no longer actively maintained.

gruff ([http://nubyonrails.com/pages/gruff](http://nubyonrails.com/pages/gruff)) also look promising  
and its website as also an ‘Other graphing software’ section.

Hth,

## Klaus

SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
