PDA

View Full Version : Label too long



strad84
2 Jan 2012, 3:31 AM
Hi, i've a charts column and the problem is with the labels too long (xField) . How can i resolve this problem ?? I've tried to put a <br /> inside label but nothing.
Thanks !

mitchellsimoens
2 Jan 2012, 6:14 AM
What would you like to happen?

strad84
2 Jan 2012, 6:20 AM
I would like part of the label in a new line

example before : sencha framework

example after : sencha
framework

mitchellsimoens
2 Jan 2012, 6:30 AM
You can try some CSS to overflow but I do not think that will work.

strad84
2 Jan 2012, 6:48 AM
mmm.. but an advice how to fix this problem?? nothing? Because i can not even make a custom legend..right???

Naga
2 Feb 2012, 4:49 AM
I too had the same issue with the long labels.

I used following code for shortening it,
But i guess it's not possible to show labels in two rows using sencha :(


label: {
renderer: function(val) {
if (val.length > 10) {
return val.substring(0, 10) + "...";
}
}


}