File: synopsis_pie.pl

package info (click to toggle)
libsvg-tt-graph-perl 0.14-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 412 kB
  • ctags: 186
  • sloc: perl: 5,564; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 406 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use SVG::TT::Graph::Pie;

my @fields = qw(Jan Feb Mar);
my @data_sales_02 = qw(12.975 45 21);

my $graph = SVG::TT::Graph::Pie->new({
      'height'   => '500',
      'width'    => '300',
      'fields'   => \@fields,
      'compress' => 0, 
});
  
$graph->add_data({
      'data' => \@data_sales_02,
      'title' => 'Sales 2002',
});
 
#print "Content-type: image/svg+xml\r\n\r\n";
print $graph->burn();