Forum: Ruby on Rails How to draw a large chart?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
A89f6b975ffa2cdb803dd6dcd9f89618?d=identicon&s=25 Khiet Bui (takkeeeeee)
on 2008-12-12 04:37
I am meeting a big problem with charts.

I have to display a horizontal bar chart with ~3000 bars in ~5s. Assume
the input data are ready in the needed format.

I have tested open flash chart, gruff, scruffy... They all failed. With
1000 bars, open flash chart took 15-20s. Gruff and scruffy were worse.

Do you have any ideas?
2505b282d57c29be797dc35b245adb4c?d=identicon&s=25 Philip Hallstrom (Guest)
on 2008-12-12 05:31
(Received via mailing list)
> Do you have any ideas?
Sub the work out to gnuplot and have it generate the image maybe...

-philip
Aafa8848c4b764f080b1b31a51eab73d?d=identicon&s=25 Phlip (Guest)
on 2008-12-12 16:07
(Received via mailing list)
>> I have tested open flash chart, gruff, scruffy... They all failed.
>> With
>> 1000 bars, open flash chart took 15-20s. Gruff and scruffy were worse.

> Sub the work out to gnuplot and have it generate the image maybe...

Indeed: GnuPlot is the oldest and most professional of those plotters
(some of
which are only on the list because they got good press!).

Contrarily, GnuPlot is often very cranky to use and poorly documented.
Too many
features!

I wrote up how to use GnuPlot for log charts here:

   http://www.oreillynet.com/ruby/blog/2008/03/cruise...

Next, I would not inflict 1 000 bars on my uses. Could you find a way to
cut the
data down to useful segments? That's why I used log charts, for example!

--
   Phlip
A89f6b975ffa2cdb803dd6dcd9f89618?d=identicon&s=25 Khiet Bui (takkeeeeee)
on 2008-12-15 02:36
Thanks, man! I will try it.

If it is okie, i will feedback :)
A89f6b975ffa2cdb803dd6dcd9f89618?d=identicon&s=25 Khiet Bui (takkeeeeee)
on 2008-12-15 04:39
Khiet Bui wrote:
> Thanks, man! I will try it.
>
> If it is okie, i will feedback :)

But, how to draw a horizontal bar chart on gnuplot?
This topic is locked and can not be replied to.