On Thu, 2 Dec 2004 09:33:14 +0900, Chris Williams <cwillia1 / rochester.rr.com> wrote: > Does anyone know of a simple package that can create bar, x-y plot, pie, > and other basic charts in a usable format? (I'm speaking gif, jpg, png. We are using ruby-gd [ http://raa.ruby-lang.org/project/ruby-gd/ ] and ruby-gdchart [ http://raa.ruby-lang.org/project/gdchart/ ] . ruby-gd is wrapper arroung lingd [ http://www.boutell.com/gd/ ] and ruby-gdchart is wrapper around gd specially for graphs (bar, pie etc.). Pretty easy to use. Just not enough docs and i couldnt make it run on windows (maybe will work with cygwin, i tryed the mingw). Sample code for cgi: require "cgi" require "GD" require 'GDChart' cgi = CGI.new print cgi.header("type"=>"image/png") gdc = GDChart.new gdc.image_type = GDChart::PNG gdc.title = "The Title" gdc.title_size = GDChart::GIANT gdc.xtitle = "X-axis" gdc.ytitle = "Y-axis" gdc.ExtColor = [ 0xFF3399, 0xFF9933, 0xFFEE33, 0x33FF33, 0x33FFCC, 0x9966FF ] gdc.BGColor = 0xFFFFFF data = [ 7, 11, 13, 17, 19, 23 ] label = ['Value X','Value Y'] gdc.out_graph(600, 400, $stdout, GDChart::BAR3D, data.length, label, 1, data)