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

Hi all,

Is there any way to wrap labels in either GD::Graph or SVG::TT::Graph? I know about GD::TextWrap, but, probably due to my own density, cannot figure out if/how it can work with GD::Graph. I am trying to move a dynamic graph from php/jdgraph (arrgghh) to perl (aaahhhh), but am stuck on this point because my labels are sometimes really long.

Thanks in advance,

Brian

Replies are listed 'Best First'.
Re: Wrapping Graph Labels
by kwaping (Priest) on Sep 08, 2006 at 15:50 UTC
    Check out GD::Text::Wrap.

    ---
    It's all fine and dandy until someone has to look at the code.

      As I mentioned, I know about the Wrap module, but I'm not sure how to use it together with Graph. Could you give me an example? It's probably straight-forward, but I seem to be missing it.