Möchte gerne Restspeicherplatz in Form eines Kuchens darstellen. Dazu bietet sich ja Chart::Pie an, doch da gibts bei mir Probs:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/perl -w
use Chart::Pie;
my $chart = Chart::Pie->new(640,480);
$chart->set( 'title' => 'A Day in the Life',
'x_label' => 'X Axis Label',
'y_label' => 'Y Axis Label' ,
'label_values' => 'percent', # tell me percentage of
# each day spent on
# each activity
'x_ticks' => 'none',
'y_ticks' => 'none',
);
$chart->add_dataset( qw(Junk_X_Tick_Label) );
$chart->add_dataset( qw(8) );
$chart->add_dataset( qw(8) );
$chart->add_dataset( qw(2) );
$chart->add_dataset( qw(6) );
$chart->set('legend_labels' => [ 'Sleep', 'Work', 'Eat', 'Watch TV' ]);
$chart->gif('output.gif'); #line 24
Fehler:
Can't locate object method "gif" via package "Chart::Pie" at ./chart.pl line 24.
wisst ihr weiter?
Pie.pm is installiert, doch die Ausgabe des gifs streikt!\n\n
<!--EDIT|pearl-man|1128927851-->