From: Florian Gross Date: 2004-04-13T08:04:12+09:00 Subject: Re: ANN: SVG::Graph 0.3.0 Sean Russell wrote: > Hi yous, Moin! > There are screenshots here: > http://www.germane-software.com/software/SVG/SVG::Graph/screenshots.html Looks nice and I think this library will be useful to me. :) > and here's a code example: > > require 'SVG/Graph/Pie' > > graph = SVG::Graph::Pie.new( { > :graph_title => "Apple Pies Sold, Q1", > :show_graph_title => true, > :fields => %w{ January February March }, > :show_data_labels => true, > :expand_greatest => true, > } ) Just wanted to tell you that there's no need for the curly brackets there. This will work as well: graph = SVG::Graph::Pie.new( :graph_title => "Apple Pies Sold, Q1", :show_graph_title => true, :fields => %w{ January February March }, :show_data_labels => true, :expand_greatest => true, ) > graph.add_data( {:data => [24, 30, 12] } ) > puts graph.burn Same here: graph.add_data(:data => [24, 30, 12]) > Cheers! Regards, Florian Gross