--- In [email protected], "marc_rossi" <[EMAIL PROTECTED]> wrote:
>
> --- In [email protected], leds usop <rptlead@> wrote:
> >
> > a code post will help :) if you dont mind
> > 

A little more reasonable (and self-contained) example:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
layout="absolute" creationComplete="initApp()">
    <mx:Script>
        <![CDATA[
            import mx.collections.ArrayCollection;

            [Bindable]
            private var monthlyData:ArrayCollection = new
ArrayCollection( [
                { Month: "Jan", VAMI: 1016.32324 },
                { Month: "Feb", VAMI: 1209.24445 },
                { Month: "Mar", VAMI: 1235.31233 } 
            ] );

            private function initApp():void {
                for (var i:Number = 0; i < monthlyData.length; i++) {
                    monthlyData[i]["VAMI"] =
tester.format(monthlyData[i].VAMI);
                }
                vami.dataProvider = monthlyData;
            }   
        ]]>
    </mx:Script>
        
    <mx:CurrencyFormatter id="tester" precision="2"/>

    <mx:LineChart id="vami" showDataTips="true">
        <mx:series>
            <mx:LineSeries displayName="VAMI" yField="VAMI"/>                 
 </mx:series>
    </mx:LineChart>
</mx:Application>

> 
> > --- marc_rossi <marc_rossi@> wrote:
> > 
> > > Hi all -
> > > 
> > > I'm trying to use a LineSeries with stock prices. 
> > > When I format the
> > > yField with the CurrencyFormatter the chart no
> > > longer works.  It looks
> > > as though I need to create my own itemRenderer but
> > > have been
> > > unsuccessful thus far in my attempts.  Is this the
> > > correct route?  If
> > > so, are there any examples available online?
> > > 
> > > TIA,
> > > Marc  
> > > 
> > > 
> > 
> > 
> > 
> >  
> >
>
____________________________________________________________________________________
> > It's here! Your new message!  
> > Get new email alerts with the free Yahoo! Toolbar.
> > http://tools.search.yahoo.com/toolbar/features/mail/
> >
>


Reply via email to