Whoops.  Looks like a bug.
 
Alright, well, the only other thing I can think of to solve your problem would be to subclass LinearAxis (or whatever axis you're using), and override the filterCache function like this:
 
override public function filterCache(cache:Array,fromField:String, toField:String):void
{
   for(var i:int = 0;i<cache.length;i++)
        cache[i][toField] = cache[i][fromField];
}
 
That might solve the problem. Alternatively, you could just watch the length of your dataProvider and flip filterData when its length is zero.
 
Ely.
 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of RBullotta
Sent: Wednesday, August 30, 2006 9:25 AM
To: [email protected]
Subject: [flexcoders] Re: Line chart data points being "clipped off"

I spoke too fast...I now recall why I stopped using "filterData" in the
component. If "filterData" is set to false, and the dataset has no
points to chart, the chart component crashes with the following error
(if filterData is set to true, the crash doesn't occur, and the chart
updates "empty" as expected):

TypeError: Error #1010: A term is undefined and has no properties.
at mx.charts.chartClasses::GraphicsUtilities$/drawPolyLine()
at
mx.charts.renderers::LineRenderer/mx.charts.renderers:LineRenderer::upda
teDisplayList()
at mx.skins::ProgrammaticSkin/validateDisplayList()
at mx.managers::LayoutManager/::validateDisplayList()
at mx.managers::LayoutManager/::doPhasedInstantiation()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/::callLaterDispatcher2()
at mx.core::UIComponent/::callLaterDispatcher()

__._,_.___

--
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
Software development tool Software development Software development services
Home design software Software development company


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to