S
Sean Russell
Hi yous,
This is to announce a new project, SVG::Graph. SVG::Graph is a
library for generating SVG chart graphs, which are a type of plot
where the values one axis are not scalar. SVG::Graph allows you to
generate line, bar, and pie charts.
The home of SVG::Graph is:
http://www.germane-software.com/software/SVG/SVG::Graph
SVG::Graph is a loose port of Perl's SVG::TT::Graph. I say "loose
port", because I reimplemented most of the code; the original was
based heavily on templates, had a lot of duplicate code, and wasn't
very modularized. However, if you're familiar with the Perl version,
you'll find the end-user API to be very familiar.
I welcome bugs, suggestions, wads of cash, cars, job offers... all the
usual forms of compensation and feedback. Of course, this is open
source and free software. There's a bug page at:
http://www.germane-software.com/cgi-bin/roundup/svg-graph
There are screenshots here:
http://www.germane-software.com/software/SVG/SVG::Graph/screenshots.html
and here's a code example:
require 'SVG/Graph/Pie'
graph = SVG::Graph:ie.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
Cheers!
--- SER
This is to announce a new project, SVG::Graph. SVG::Graph is a
library for generating SVG chart graphs, which are a type of plot
where the values one axis are not scalar. SVG::Graph allows you to
generate line, bar, and pie charts.
The home of SVG::Graph is:
http://www.germane-software.com/software/SVG/SVG::Graph
SVG::Graph is a loose port of Perl's SVG::TT::Graph. I say "loose
port", because I reimplemented most of the code; the original was
based heavily on templates, had a lot of duplicate code, and wasn't
very modularized. However, if you're familiar with the Perl version,
you'll find the end-user API to be very familiar.
I welcome bugs, suggestions, wads of cash, cars, job offers... all the
usual forms of compensation and feedback. Of course, this is open
source and free software. There's a bug page at:
http://www.germane-software.com/cgi-bin/roundup/svg-graph
There are screenshots here:
http://www.germane-software.com/software/SVG/SVG::Graph/screenshots.html
and here's a code example:
require 'SVG/Graph/Pie'
graph = SVG::Graph:ie.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
Cheers!
--- SER