Hi Flexcoders,

        I have a problem dunnow why it isn't working.
        Appreciate any inputs on this.
        
        I have a pie chart component and I need to display the String
Value beside the Pie chart in Bold.
        The String contains an attribute "result" which has to be
displayed in Bold and the text following 
        it in normal font. So typically a style sheet would not work
here (As it'll apply style to whole String).

        So here's the Function : 
        
        private function displayLabel(data:Object, field:String,
index:String, percentValue:String):String {
            var temp:String= (" " + percentValue).substr(0,6);
            var temp1:String =  data.result + "%" + "\n" + data.tip;
            return temp1;

        So here I need to display "data.result" in BOLD, rest in normal
font. 
        
        So this is change I did for the function

        private function displayLabel(data:Object, field:String,
index:String, percentValue:String):String {
            var temp:String= (" " + percentValue).substr(0,6);
            var temp1:String =  "<b>"+data.result+"</b>"+ "%" + "\n" +
data.tip;
            return temp1;
                         
             }

        With HTML text to return "data.result" as HTML so
<b>data.result</b> takes effect
        
        <mx:Text>
                <mx:htmlText>
                        {displayLabel(data.result, '%' , '\n' ,
'data.tip')}
                </mx:htmlText>
        </mx:Text>

        But the output displays <b></b> as a part of label beside pie
chart ,Eg: <b>20%</b>
        
        So can anybody please point where I'm goin wrong.
        Appreciate any inputs.


 
Important: This e-mail, including any attachment(s) hereto, is intended
only for the individual or entity to whom it is addressed. It may
contain proprietary, confidential or privileged information or attorney
work product belonging to Fidelity Business Services India Pvt. Ltd.
(FBS India) or its affiliates. If you are not the intended recipient of
this e-mail, or if you have otherwise received this e-mail in error,
please immediately notify the sender via return e-mail and permanently
delete the original mail, any print outs and any copies, including any
attachments. Any dissemination, distribution, alteration or copying of
this e-mail is strictly prohibited. The originator of this e-mail does
not guarantee the security of this message and will not be responsible
for any damages arising from any dissemination, distribution, alteration
or copying of this message and/or any attachments to this message by a
third party or as a result of any virus being passed on. Any comments or
statements made in this are not necessarily those of FBS India or any
other Fidelity entity. All e-mails sent from or to FBS India may be
subject to our monitoring and recording procedures. FBS India is an
Appointed Representative of Fidelity Investments International, which is
authorized and regulated by the United Kingdom Financial Services
Authority. Fidelity Investments International only gives information on
its products and services and does not give investment advice to private
clients based on individual circumstances.


Reply via email to