I'm creating some graphs with GD::Graph. They are "mixed" graphs in that each one has 6 vertical bars and one horizontal line. I like the graph with one exception.

The horizontal line is drawn from the centerpoint of the left most bar to the centerpoint of the right most bar. It looks funny, especially when the left or right most bar is below the horizontal line.

I would like the horizontal line to extend all the way to the axes box on the right and left sides. I tried putting additional data on the left and right side. Since all data sets use the same x-value array, I made the additional bars undefined, so no additional bars appear on the left and right. The horizontal line then extends to the left and the right of the vertical bars. However, it still does not go to the axes box and this causes the 6 bars to be smaller and appear more scrunched together.

Is there anyway to make the line in a mixed lines and bars graph go all the way to the axes?

Thank you for any help.

In reply to GD::Graph::mixed by kryberg

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.