Displaying 20 results from an estimated 2000 matches similar to: "Gruff on Windows"
2007 Feb 28
1
hi guys problem with running gruff
Hi guys i am pretty much a newbie to rails and tried to install gruff and
run the example given in home page for gruff
i am using ubuntu and dapper.
first i got two errors when i used this example
#!/usr/bin/ruby
require ''rubygems''
require ''gruff''
g = Gruff::Line.new
g.title = "My Graph"
g.data("Apples", [1, 2, 3, 4, 4, 3])
2006 May 25
2
Have a quick Gruff Graphing question
I have some graphs and everything is working great, but I''d like to set
a minimum height so to speak on the vertical scale. Is there a method
to do that with Gruff? I''ve tried looking through the docs but can''t
seem to get it to work.
So for example, if the highest datapoint in my graph was say 500, is it
possible to have the minimum vertical scale on the left set
2006 Jul 05
1
Need some Gruff graphing help - custom dimensions?
I''ve been working with Gruff to do all my apps graphing and such etc. I
love it but I''m just having a hard time customizing the graphs, but this
is perhaps due to my inability to comprehend the online RDocs.
What I want to do is adjust the width / heights of my graphs or at the
VERY LEAST the heights. It seems that if you scale a graph anywhere
below 400-450px it is pretty
2006 Apr 22
1
Gruff
I have installed Gruff and am trying to get an example to work i found
at
http://tomcopeland.blogs.com/juniordeveloper/2006/02/charts_and_grap.html.
I have the following code in the controller:
# Send a graph to the browser
def crumpetchartaction
days = 5
g = Gruff::Line.new(500)
g.title = "Crumpets over the past #{days} days"
g.theme_keynote
crumpets_to_date = []
2006 Jun 05
1
Strange problem with Gruff not always displaying graph
Hello,
I am having a strange problem with Gruff not always displaying the graph
on the page. On some pages, the graph is displayed fine. On others,
however, I just get the number relating to the id of the requested item
- in my case, report.
Does anyone know how to solve this problem?
I have the following in my controller:
def create_graph
g = Gruff::Line.new(290)
g.title =
2007 Apr 09
6
gruff send_data
Hi,
for those with experience of Gruff module: suppose I want to send
image from server straight to the browser (as example on gruff web
site):
send_data(g.to_blob,
:disposition => ''inline'',
:type => ''image/png'',
:filename => "gruff.png")
the server seems sending this binary data ok, but I am having
2009 Dec 24
2
Showing graphs on browser with gruff lib.
Hi,
I am using "gruff" lib for creating the graphs.
I have got the success to create the graph, but my problem is I don''t
want to store it, I want that they should be displyed on the browser it
self.
I have tried this:-
"
send_data(g.to_blob, :disposition => ''inline'', :type => ''image/png'',
:filename =>
2006 Jan 09
6
Rendering dynamic Gruff image (send_data)
Dears,
Got a controller witch do a send_data for displaying a chart.
like :
send_data(g.to_blob, :filename => "any.png", :type => ''image/png'',
:disposition=> ''inline'')
I actually do a
<img src="http://myhost:3000/stats/make_graph" />
Is there any way more clean to do that ? At minima don''t hardcode the
beginning
2006 Aug 09
2
Gruff gives font-related error
Hello Railslist,
I''m trying to get Gruff running on OSX Tiger (intel) with edge Rails.
I''ve installed ImageMagick, Rmagick, FreeType and all their
dependencies, or so I believe. (I''ve compiled them from source mostly,
following a recent tutorial for Rails and ImageMagick on Intel Macs)
While following the sample on the Gruff downloadpage (the one with the
fruit), Rails
2006 Oct 31
1
[OT] Hosed ImageMagick Kills Gruff
This is off-topic because it''s installation specific, but I wondered if
anyone could point me in the right direction. I installed ImageMagick and
RMagick on my MacBook Pro using Darwin Ports and the normal gem install,
respectively. I got the dreaded "bus error."
I read Tom Mornini''s discussion about installing GraphicsMagic and then
RMagick, so I used port uninstall
2006 Feb 23
11
Can''t use Gruff with Rails
Hello list,
I''m having a problem getting Gruff working with Rails on a Windows XP box.
I installed RMagick, then Gruff via the win32 gem, and it seemed to go
OK. From irb, I can do the following
- require ''rubygems'' ##### This returns ''false'', but seems to work OK
- require ''gruff'' ####### Ditto
- g = Gruff::Bar.new
etc., and I get
2006 Apr 30
6
Help, Gruff is killing me
Hi all,
I hope somebody can help me out here, since the issue has been killing
me for the last three days. Here is the issue:
It seems that gruff kills rails/webrick whenever it''s used on win32. I
installed gruff per instructions and it seems to be working. The
sample controller generates a nice grpah with send_data and all. The
issue started once I try to use any other
2006 Jul 22
2
Gruff Graphs
Well, I''m trying to generate graphs using gruff,
but I''m having problemns.
I use, require_gem ''gruff''
then when I run g = Gruff::Line.new(475)
I get uninitialized constant Gruff
/////
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:100:in
`const_missing''
2007 Jan 04
4
RMagick problems
I read the 13th recipe in the book "Rails Recipes" from Chad Fowler. I
install with gem the gruff-library (gem install gruff). After the
installation, I download the "rmagick-win32-1.13.0_IM-6.2.9-3.zip" file
and install it on my win32-machine. It was successfully!
So, I create a controller with script/generate. In a method, which I
wrote after the creation, I''ll make
2006 Oct 20
6
win32-service weirdness
I''ve got my application running under Windows with mongrel perfectly,
so it was time to convert it to a service. service::install works
fine, but service:start gives me some "One moment, start pending" and
then lots of "One moment, stopped".
After a bit of digging I found this in the service.log:
** Starting Mongrel in production mode at :3000
** Starting Rails in
2006 Apr 06
1
Rmagick file conversion
I am using rmagick to convert files stored as a tiff to either pdf or
jpg for display to the user. A snippet of test code from the controller
follows. It works OK. ( it does need a sanitizer )
require RMagick
def pdf
@sdoc = Sdoc.find(params[:id])
@fname = ''/var/www/images/'' + @sdoc.fname
@nf = Magick::ImageList.new(@fname)
2008 Mar 22
3
rmagick
hey i am now using gruff for showing graph...
when i run the program,it will show an error:
no such file to load -- RMagick..then i am trying to install
RMagick,by the command gem install rmagick,but this command also
not executed properly..anyone can help..
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are
2006 Aug 13
0
Legend wrapping for Gruff
Hi all,
I''ve been playing around with Gruff, love the pie chart
functionality! I''m having one problem though with lots of items in
the legend. It seems Gruff doesn''t handle wrapping of the legend? I
couldn''t find it any of the documentation and was wondering how other
people have handled this?
There was a similar question posted on the Gruff Project
2007 Oct 16
0
Gruff
Hello,
I used gruff library to display some of bar charts.
It works fine but Gruff API documentation does not explain much like
java api.
So if I wanted to try some features like spacing between two bars, 3-D
graph.
It may be features available in Gruff library, but it is not well
documented, I guess.
Helpful resources would be appreciated.
Thank You.
Dakshesh
2008 Dec 04
2
Does animated gif will work properly using RMagick?
Dear all,
I have used RMagic to read and write a image while uploading. An
animated gif was read from my local machine and was written in my images
folder using RMagick. But the animated gif which i read was witten in my
folder without animation. What should i do to write the gif image with
animation.
Here is my code to read and write image while uploading.
image = params[:image][:blob]