Thanks Ely, that'll work for now.

--- In flexcoders@yahoogroups.com, "Ely Greenfield" <[EMAIL PROTECTED]>
wrote:
>
>
>
>
> You're tripping over some of the conversion rules AS3 has
inherited (by necessity) from EcmaScript. The LineSeries can
correctly render missing data, but unfortunately the XML API never
reports the data as missing, only as an empty string....which
converts to the numeric value 0.
>
> The bug has been logged, but if you want to work around it in the
meantime, any non-numeric value will get interpreted as bad data and
stripped out of the data set.
>
> i.e., turn soemthing like this:
>
> <value>
>   <a></a>
>   <c>12</c>
> </value>
>
> Into this:
>
> <value>
>   <a>junk</a>
>   <b>junk</b>
>   <c>12</c>
> </value>
>
>
> Ely.

>
> -----Original Message-----
> From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of pasflex
> Sent: Wednesday, May 24, 2006 11:09 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Problem with LineChart - Flex 2 Beta 3
>
> Any ideas on this?
> I've tried setting filterData to true on the lineseries (should be
by default anyhow) but it still seems to try to plot these null
values.
> Thanks.
>
> --- In flexcoders@yahoogroups.com, "pasflex" <pswiss@> wrote:
> >
> > We are populating a line chart with some data returned from an
> > HTTPService.  The data is xml which flex parses to an object
> > (resultFormat='object').  For some of the LineSeries the data is
> not
> > contiguous.  The problem is that the chart is still drawing
these
> > missing datapoints.  It draws them at 0, although the datatips
> show
> > no value for them.  We have tried returning an empty tag or
> leaving
> > the tag out completely but the points still show up.  Here's
some
> > sample code that demonstrates the issue without using the
HTTPService.
> > Any ideas?
> >
> > <?xml version="1.0"?>
> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
> >     <mx:Script>
> >           <![CDATA[
> >        
> >         [Bindable]
> >         private var xml:XML =
> >               <values>
> >                     <value>
> >                           <a></a>
> >                           <b>2</b>
> >                     </value>
> >                     <value>
> >                           <a>1</a>
> >                           <b>2</b>
> >                     </value>
> >                     <value>
> >                           <a>1.5</a>
> >                           <b>2</b>
> >                     </value>
> >                     <value>
> >                           <b>2</b>
> >                     </value>
> >               </values>;
> >        
> >           ]]>
> >     </mx:Script>
> >     <mx:Panel title="Line Chart">
> >         <mx:LineChart dataProvider="{xml.value}"
> showDataTips="true">
> >               <mx:series>
> >                     <mx:Array>
> >                           <mx:LineSeries yField="a"/>
> >                           <mx:LineSeries yField="b"/>
> >                     </mx:Array>
> >               </mx:series>             
> >         </mx:LineChart>
> >     </mx:Panel>
> > </mx:Application>
> >
>
>
>
>
>
>
> ------------------------ Yahoo! Groups Sponsor --------------------
~--> Everything you need is one click away.  Make Yahoo! your home
page now.
> http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/nhFolB/TM
> -------------------------------------------------------------------
-~->
>
> --
> Flexcoders Mailing List
> FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%
40yahoogroups.com
> Yahoo! Groups Links
>







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to