From: piir@... (Todd Gardner) Date: 2004-06-17T11:28:26+09:00 Subject: Re: SVG::Graph looks awesome... gabriele renzi wrote in message news:... > il 15 Jun 2004 18:52:30 -0700, piir@earthlink.net (Todd Gardner) ha > scritto:: > > >Hello everyone, > > > >I'm trying to install SVG::Graph through the link below. > > > > download the .zip package. Then unzip it and open a prompt. > go to the directory and type: > ruby install.rb > Now it is installed (it is on my xp box) Hello Gabriele, I have done that however, I don't know it's working right. I'm trying to run that code for Line.rb from the site http://www.germane-software.com/software/SVG/SVG::Graph/doc/ ->SVG::Graph::Line. The code does not generate any graphics, only text is generated in SciTE 1.59. What do I have to install or what am I doing wrong? Thank you, Todd =Output for Line.rb============================================= >rubyw Line.rbw Content-type: image/svg+xml Jan Feb Mar 12.0 15.465 18.93 22.395 25.86 29.325 32.79 36.255 39.72 43.185 46.65 15 15 30 30 40 40 12 12 45 45 21 21 Sales 2002 Sales 2003 >Exit code: 0 =Code for Line.rb======================================================== require 'SVG/Graph/Line' fields = %w(Jan Feb Mar); data_sales_02 = [12, 45, 21] data_sales_03 = [15, 30, 40] graph = SVG::Graph::Line.new({ :height => 500, :width => 300, :fields => fields, }) graph.add_data({ :data => data_sales_02, :title => 'Sales 2002', }) graph.add_data({ :data => data_sales_03, :title => 'Sales 2003', }) print "Content-type: image/svg+xml\r\n\r\n"; print graph.burn(); ======================================================================