hai monks,
i am using GD:Graph module to generate bar charts,thanks for
your helps regarding my previous doubts in the module.
i need one more clarification about the bar charts heights and widths.
According to the data's in the bar chart the height and width of the chart should change as per the query. how do i go about it . here is the code which i have.
my $mygraph = GD::Graph::bars->new(600,500);
$mygraph->set(
title => "$pairs[0]",
x_label => "@xaxis",
x_labels_vertical => 90,
# xaxis.stubvert => 'yes',
# xaxis.stubs => 'text',
bar_width => 10,
bar_spacing => 1,
show_values => 1,
dclrs => ['green'] ,
axislabelclr => 'red',
# logo => 'bgcolor1.png', /corect on/
# logo_resize =>5.5,
transparent => 1,
shadowclr => 'gray',
shadow_depth =>3,
borderclr=>'green',
transparent => '0',
bgclr => 'lgray',
boxclr => 'lgray',
fgclr => 'white',
cycle_clrs => '1',
) or warn $mygraph->error;
$mygraph->set_title_font(GD::gdGiantFont);
$mygraph->set_x_axis_font(GD::gdMediumBoldFont);
$mygraph->set_y_axis_font(GD::gdMediumBoldFont);
$mygraph->set_values_font(GD::gdSmallFont);
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.