Menu

#14 setLayoutRatios doesn't have much effect

open
nobody
None
5
2003-03-25
2003-03-18
No

Hello!

I'm having a problem with legend text wrapping, as in
the attached PNG image. As you can see my label axis
text is quite long.

Now I've tried increasing the proportion of horizontal
space allocated to the legend with setLayoutRatios, but
it doesn't seem to do very much. I gather from the
documentation that it is up to me to make sure that the
sum of the graph and legend width components adds to
far enough less than 1 to allow space for the legend,
but even within that constraint, no matter what I do
it's still quite keen to wrap the legend.

I'm not calling setSize on the chart, so it could just
make the chart large enough to accomodate the legend,
surely?

Ideally I'd like my legend labels to word-wrap since
they are long and the legend to not not wrap individual
characters since there's no need and it's ugly, and
also to avoid any wrapping of the numbers axis labels
(which sometimes happens too) :-)

Any suggestions?

Thanks,

ABS

Discussion

  • Jason J Simas

    Jason J Simas - 2003-03-18

    Logged In: YES
    user_id=179964

    you forgot to attach the png?

     
  • Jason J Simas

    Jason J Simas - 2003-03-24
    • status: open --> closed
     
  • Alaric Snell

    Alaric Snell - 2003-03-25

    Wrapping text

     
  • Alaric Snell

    Alaric Snell - 2003-03-25

    Logged In: YES
    user_id=603877

    Hmmm. I thought I had. I'll try again! Sorry!

     
  • Alaric Snell

    Alaric Snell - 2003-03-25
    • status: closed --> open
     
  • Jason J Simas

    Jason J Simas - 2003-04-10

    Logged In: YES
    user_id=179964

    sorry for the delay.

    i made a small demo that looked like your chart and got the
    same behavior. i don't know why. it looks like a bug, i
    think it might have worked fine with an earlier sdk. also
    it might be a bug fix that i didn't feed into the LLChart2D,
    because it looks fine in LBChart2D.

    --jason

     

Log in to post a comment.

MongoDB Logo MongoDB