Namrata has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I have created Pie chart using Perl package GD, the data labels displayed in each partition seems to be very messy and small, i need to format it. Could you please suggest me how could i change the font size, color etc.
  • Comment on new GD::Graph::pie3d( ); format data labels

Replies are listed 'Best First'.
Re: new GD::Graph::pie3d( ); format data labels
by isha (Sexton) on Jan 22, 2008 at 10:28 UTC
    Hi Namrata,

    for pie chart u can use following methods:
    $graph->set_title_font("/usr/share/fonts/ttf/windows/times.ttf",18); $graph->set_value_font("/usr/share/fonts/ttf/windows/times.ttf",12); $graph->set_label_font("/usr/share/fonts/ttf/windows/times.ttf",14);

    where 1st argument is font type & second one is font size :)