Thread Chart::Pie: Can't locate object method "gif"... (3 answers)
Opened by pearl-man at 2005-10-10 11:01

pearl-man
 2005-10-10 11:01
#5777 #5777
User since
2005-07-25
65 Artikel
BenutzerIn
[default_avatar]
Möchte gerne Restspeicherplatz in Form  eines Kuchens darstellen. Dazu bietet sich ja Chart::Pie an, doch da gibts bei mir Probs:

Code: (dl )
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-->

View full thread Chart::Pie: Can't locate object method "gif"...