Best way to implement animated chart in ruby

  • Thread starter Diego Bernardes
  • Start date
D

Diego Bernardes

I need to implement a animated chart in ruby, im using gtk.
Anyone have a idea?
The animation, needs to be smooth.

Cairo? RMagick(too slow to draw a chart 30 times a second)? any other
plot gem? anyone know one?

Thanks alot!
 
J

James Britt

Diego said:
I need to implement a animated chart in ruby, im using gtk.
Anyone have a idea?
The animation, needs to be smooth.

Cairo? RMagick(too slow to draw a chart 30 times a second)? any other
plot gem? anyone know one?

If you're up for JRuby, there may be Swing components you could use.

Look at the Monkeybars lib for building GUI apps in JRuby.



--
James Britt

www.jamesbritt.com - Playing with Better Toys
www.ruby-doc.org - Ruby Help & Documentation
www.rubystuff.com - The Ruby Store for Ruby Stuff
www.neurogami.com - Smart application development
 
S

steve

Diego said:
I need to implement a animated chart in ruby, im using gtk.
Anyone have a idea?
The animation, needs to be smooth.

Cairo? RMagick(too slow to draw a chart 30 times a second)? any other
plot gem? anyone know one?

Thanks alot!

How about generating SVG (which is just xml) and displaying it using a
browser. You could use just webrick to generate the pages.
 
D

Diego Bernardes

About web i can't, it need to be a desktop application, because the
integration with os.

The perfect example for what i need is gnome system monitor charts.

Jruby, maybe one alternative, need look a bit.

The application is to monitor some applications the company i work has
in the intranet.

This is why i need the animated charts.
 
B

brabuhr

I need to implement a animated chart in ruby, im using gtk.
Anyone have a idea?
The animation, needs to be smooth.

Cairo? RMagick(too slow to draw a chart 30 times a second)? any other
plot gem? anyone know one?

Have you looked at ruby-gnome2? You may be able to use the same
underlying components that Gnome System Monitor does?

http://ruby-gnome2.sourceforge.jp/
 
L

Logan Barnett

About web i can't, it need to be a desktop application, because the
integration with os.

The perfect example for what i need is gnome system monitor charts.

Jruby, maybe one alternative, need look a bit.

The application is to monitor some applications the company i work has
in the intranet.

This is why i need the animated charts.


Diego,
I've done a real-time updating chart that shows bandwidth usage and
other information from a satellite modem using bar graphs. In the app
there are 4 panels, and 8 bars per graphs. Each graph shows a
'peak' (a line showing the highest the bar has ever been). Some bars
have different colors, and all of them have a slight beveled border
around them. On top of that the bars gradually step to their desired
values so they don't just jump erratically.

I suppose I'm trying to paint a picture that shows a lot going on at
once - The JRuby + Monkeybars route was worked pretty well for us and
our client.

Logan Barnett
(e-mail address removed)
http://www.logustus.com
 
R

Ryan Davis

I need to implement a animated chart in ruby, im using gtk.
Anyone have a idea?
The animation, needs to be smooth.

Cairo? RMagick(too slow to draw a chart 30 times a second)? any other
plot gem? anyone know one?

One of the ex-seattle.rb members did some REALLY pretty realtime full
screen graphics stuff using cairo and ruby back in the day. It used
continuations and all sorts of stuff that went over my head. What
didn't go over my head was the pretty and the slick.

That was back in 2002 or so... so I can't find it... but rcairo should
be able to meet your needs just fine.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top