File: sample93.pl

package info (click to toggle)
libgifgraph-perl 1.10-2
  • links: PTS
  • area: contrib
  • in suites: potato
  • size: 556 kB
  • ctags: 118
  • sloc: perl: 3,738; makefile: 23
file content (20 lines) | stat: -rw-r--r-- 333 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use GIFgraph::pie;

print STDERR "Processing sample 9-3\n";

@data = ( 
	[ qw( 1st 2nd 3rd 4th 5th 6th 7th ) ],
	[ sort { $b <=> $a} (5.6, 2.1, 3.03, 4.05, 1.34, 0.2, 2.56) ]
);

$my_graph = new GIFgraph::pie( 200, 200 );

$my_graph->set( 
	start_angle => 90,
	'3d' => 0
);

$my_graph->plot_to_gif( "sample93.gif", \@data );

exit;