GD::Graph::Pie display values

From: Bill McCormick (wpmccormick_at_hotmail.com)
Date: 11/24/03


Date: 24 Nov 2003 09:04:02 -0800

Hi all,

Just stated using this great module. I can't seem to get values to
display on a pie chart.

Here's a piece of the relavent code:

  my $mygraph = GD::Graph::pie->new(350, 350);
  $mygraph->set(
      '3d' => 0,
      dclrs => [ qw(lred lgreen lblue lyellow lpurple cyan lorange
blue) ],
      show_values => 1,
      valuesclr => 'black',
      title => 'Current Store Sales Percentage Breakdown',
  ) or warn $mygraph->error;
  $mygraph->set_value_font('arial.ttf',10);

How can I get the values to show up on the pie chart?

Any idea when pie chart legends will be available?

Thanks,

Bill



Relevant Pages

  • Re: Software to display disk usage as a pie chart
    ... with other CLI tools like ... is rather more usefull than some pie chart. ... The graphical display is exceptionally useful because you ... all of other suggestions in this thread and I think xdiskusage is far ...
    (comp.os.linux.misc)
  • IllegalStateException: OutputStream already obtained
    ... I am trying to display an image in my jsp. ... The image is a pie chart ... obtained]: java.lang.IllegalStateException: OutputStream already ...
    (comp.lang.java.programmer)
  • Re: GD::Graph::Pie display values
    ... Labels display fine; I'm looking to display the *values*. ... >> How can I get the values to show up on the pie chart? ... > a data set, since you didn't provide one (also shouldn't make a ...
    (comp.lang.perl.modules)
  • Sizing Report Document So Dont Have to Scroll
    ... I have a pie chart that sizes at around 200*200 pixels. ... I want to display it ... on the bottom corner of a form. ... How do i reduce the presentation size of the report so the user doesn;t have ...
    (microsoft.public.vb.crystal)
  • Re: win exploer doesnt display disk size and preview pics
    ... Tools>Folder Options>View Tab. ... to see drive information. ... the size of the drive and a pie chart would display to ... > the a thumbnail would display for the current highlighted or selected file ...
    (microsoft.public.windowsxp.general)