I have a perl script using CGI to create a stacked Bar graph. I am plotting Build Times and Kitting times per platform.
my data plot looks like.
@data2 = (['Windows', 'Linux', 'Solaris'],
[150,250,350],
[100,200,300]);
However if I want to reverse the way it is displayed, the
plotting works ok, but the values do not follow the bar. So
reversing the above data points to
@data2 = (['Windows', 'Linux', 'Solaris'],
[100,200,300],
[150,250,350]);
The values remain the same.
I have cumaulate => 1 and show_values=> 1.
How do I get the values to follow the bars?
Here is my graphing points.
my $graph = new GD::Graph::bars(900,600);
$graph->set(
x_label => $x_Label,
x_label_position => 1/4,
x_label_vertical => 1,
y_label => 'Minutes',
y_max_value => 300,
y_tick_number => 10,
title => $Graph_Title,
bar_width => 35,
cumulate => 1,
dclrs => ['lblue', 'cyan'],
bgclr => 'white',
fgclr => 'lred',
values_vertical => 0,
valuesclr => 'black',
accentclr => 'red',
shadowclr => '#F7E7CE',
shadow_depth => 0,
legendclr => 'blue',
show_values => 1);
I hope I provided enough information. This is driving me nuts!
Thanks
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.