You can format it in the labelFunction if you use a renderer that supports
htmlText.

 

Tracy Spratt,

Lariat Services, development services available

  _____  

From: [email protected] [mailto:[email protected]] On
Behalf Of sailorsea21
Sent: Wednesday, March 11, 2009 3:54 PM
To: [email protected]
Subject: [flexcoders] How can I format the text in my custom labelFunction?

 

Hi everyone, 

how can I format the text in my custom labelFunction (bold, center,
color...)

CategoryAxis: labelFunction="test_labelFunc".

private function
test_labelFunc(item:String,previousItem:Object,axis:CategoryAxis,labelItem:X
ML):String
{
var labelArray:Array = item.split('?');
return labelArray[0] + '\n' + labelArray[1] + '\n' + labelArray[2];
}

I would like my return text to be centered and my "labelArray[0]" to be
bold.

Are there any tutorials?

Thanks.



Reply via email to