For the second graph (say a bar chart), the variable to which the range is being assigned is having not having any value.

Just for terminology: range in this context means the same as with mathematical functions; so if you have a bar chart, the range denotes the minimum and maximum height of the bars. Is this correct?

In this case, if you have no range given, I would derive the range in some reasonable way from the data itself. For the upper bound of the range, you could simply take the largest value to plot. For the lower bound of the range, I would not take the smallest value (because this would result in a bar of height zero), but something smaller. If the values are all non-negative, you could try 0 as a lower range or, if this makes the bars look "too equal-sized", you could take 80% of the lowest value for the lower bound of the range. See also David Huff's book "How to Lie With Statistics" ;-)
-- 
Ronald Fischer <ynnor@mm.st>

In reply to Re: Plotting multiple graphs in excel using win32::OLE by rovf
in thread Plotting multiple graphs in excel using win32::OLE by arjkou

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.