|
TextBox size |
Posted by seafree on Jun-20-2014 02:03 |
|
Hi, I need resize the TextBox Label because the size label text is more bigger than the border, how can I resize the border? |
Re: TextBox size |
Posted by seafree on Jun-20-2014 02:22 |
|
I use:
# Set the x axis labels
#$c->xAxis()->setLabels($labels);
#---Modificamos la linea para girar a ***90*** grados
$c->xAxis()->setLabels($labels)->setFontAngle(45);
$c->xAxis->setWidth(17);
But nothing, how can I resize the xAxis Lables?
Can you help me? thank you. |
Re: TextBox size |
Posted by Peter Kwan on Jun-20-2014 23:26 |
|
Hi seafree,
The size of your labels depend on the label text and the font size. For example, if you are
using the Arial 8pt font, and the label is 100 characters in length, then it will be quite long.
I am not too sure exactly what you mean by "resizing the xAxis labels". If you want the text
to look smaller, please use a smaller font size. If you want to "wrap" the text if the label is
too long, you may use TextBox.setMaxWidth (note that this does not resize the labels - it
just layout them into multiple lines instead of one line). If you want to "truncate" the labels,
you may use TextBox.setTruncate.
For example:
my $t = $c->xAxis()->setLabels($labels);
$t->setFontAngle(45);
$t->setTruncate(80); #truncate if necessary to within 80 pixels
Hope this can help.
Regards
Peter Kwan |
|