Hi,
I would like to ask a few questions about the ''charts''
example which is included with the newest release of FX. I like the
idea of producing a chart like this however this one appears to need an
internet connection to work (i assume to gather formating?).
I have a large array full of data and I would like to plot a graph
based on two of the fields in the array e.g. date againist vs event. Is
there a way I can do this similar to the example given in charts.rb. I
would like it to work offline and simply draw a line or bar graph based
on two sets on data (date along the botton and event frequency up the
side). Can this be done.
I look forward to your response.
Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://rubyforge.org/pipermail/fxruby-users/attachments/20081222/6641ba04/attachment.html>
On Dec 22, 2008, at 4:39 AM, Stuart Clarke wrote:> I would like to ask a few questions about the ''charts'' example which > is included with the newest release of FX. I like the idea of > producing a chart like this however this one appears to need an > internet connection to work (i assume to gather formating?).Right. It uses the Google Chart API, which depends on being able to access the network-based Google Chart service.> I have a large array full of data and I would like to plot a graph > based on two of the fields in the array e.g. date againist vs event. > Is there a way I can do this similar to the example given in > charts.rb. I would like it to work offline and simply draw a line or > bar graph based on two sets on data (date along the botton and event > frequency up the side). Can this be done?I hope some others on the list will chime in on this one. There''s no built-in charting library for FXRuby, but if there are any existing Ruby libraries that can be used to produce chart graphics, we can probably find a way to feed their output into an FXRuby image. Hope this helps, Lyle -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20081222/057d4385/attachment.html>
Thanks for your response. Right now I have written some test code which uses the
ruport/util library in Ruby. I am able to output an SVG graph from the code, if
we can glue this into FX I will look to integrate the ruport graphs class.
I will try and get this into FX now but if anyone has any suggestions I look
forward to a response.
Many thanks
--- On Mon, 22/12/08, Lyle Johnson <lyle at lylejohnson.name> wrote:
From: Lyle Johnson <lyle at lylejohnson.name>
Subject: Re: [fxruby-users] (no subject)
To: fxruby-users at rubyforge.org
Date: Monday, 22 December, 2008, 2:01 PM
On Dec 22, 2008, at 4:39 AM, Stuart Clarke wrote:
I would like to ask a few questions about the ''charts'' example
which is included with the newest release of FX. I like the idea of producing a
chart like this however this one appears to need an internet connection to work
(i assume to gather formating?).
Right. It uses the Google Chart API, which depends on being able to access the
network-based Google Chart service.
I have a large array full of data and I would like to plot a graph based on two
of the fields in the array e.g. date againist vs event. Is there a way I can do
this similar to the example given in charts.rb. I would like it to work offline
and simply draw a line or bar graph based on two sets on data (date along the
botton and event frequency up the side). Can this be done?
I hope some others on the list will chime in on this one. There''s no
built-in charting library for FXRuby, but if there are any existing Ruby
libraries that can be used to produce chart graphics, we can probably find a way
to feed their output into an FXRuby image.
Hope this helps,
Lyle_______________________________________________
fxruby-users mailing list
fxruby-users at rubyforge.org
http://rubyforge.org/mailman/listinfo/fxruby-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://rubyforge.org/pipermail/fxruby-users/attachments/20081222/7ee080ad/attachment.html>
On Dec 22, 2008, at 9:45 AM, Stuart Clarke wrote:> Thanks for your response. Right now I have written some test code > which uses the ruport/util library in Ruby. I am able to output an > SVG graph from the code, if we can glue this into FX I will look to > integrate the ruport graphs class. > > I will try and get this into FX now but if anyone has any > suggestions I look forward to a response.I don''t know of a way to (directly) use SVG in FOX, but maybe you could use some sort of intermediary library (like RMagick) to convert it to one of the supported image file formats, like GIF, PNG, JPEG or TIFF. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20081222/45d3e698/attachment.html>