File: synopsis_pie.pl

package info (click to toggle)
libsvg-tt-graph-perl 1.04-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 488 kB
  • sloc: perl: 5,717; makefile: 7
file content (20 lines) | stat: -rw-r--r-- 423 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use lib qw(lib);
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();