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

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.

Replies are listed 'Best First'.
Re: GD::Graph::mixed
by dragonchild (Archbishop) on Nov 25, 2003 at 18:32 UTC
    Support for mixed graphs is ... less than optimal. That's one reason I'm not initially allowing them in Graph::Template (coming out this week). Contact the author and see what s/he says about it.

    ------
    We are the carpenters and bricklayers of the Information Age.

    The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6

    ... strings and arrays will suffice. As they are easily available as native data types in any sane language, ... - blokhead, speaking on evolutionary algorithms

    Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.

      That's what I suspected. Thanks for the reply.