|
Looks
like I spoke too soon. Empty objects don't work for missing values at the
end of a line chart (they work fine for missing values at the
beginning). The following examples gives this error (which is different
from the error received when the value was null):
TypeError: Error #1009: Cannot access a property or method of a null
object reference.
at mx.charts.chartClasses::NumericAxis/mapCache() at mx.charts.series::LineSeries/mx.charts.series:LineSeries::updateMapping() at mx.charts.chartClasses::Series/mx.charts.chartClasses:Series::validateData() at mx.charts.series::LineSeries/describeData() at mx.charts.chartClasses::DataTransform/describeData() at mx.charts.chartClasses::AxisBase/mx.charts.chartClasses:AxisBase::describeData() at mx.charts.chartClasses::NumericAxis/get mx.charts.chartClasses:NumericAxis::dataDescriptions() at mx.charts.chartClasses::NumericAxis/::autoGenerate() at mx.charts.chartClasses::NumericAxis/::updateCache() at mx.charts.chartClasses::NumericAxis/update() at mx.charts.chartClasses::NumericAxis/getLabelEstimate() at mx.charts::AxisRenderer/::measureLabels() at mx.charts::AxisRenderer/::calcRotationAndSpacing() at mx.charts::AxisRenderer/adjustGutters() at mx.charts.chartClasses::CartesianChart/::updateAxisLayout() at mx.charts.chartClasses::CartesianChart/mx.charts.chartClasses:CartesianChart::updateDisplayList() at mx.core::UIComponent/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() Any
other options?
Thanks,
Sam
<?xml
version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Script> <![CDATA[ private function getTestData():Array { var x:XML = <stats> <stat pat_time="0" hr="140" pao2_alv="38" pao2_art="47" /> <stat pat_time="5" hr="149" pao2_alv="41" pao2_art="42" /> <stat pat_time="10" hr="112" pao2_alv="15" pao2_art="29" /> </stats>; var a:Array = [ x.stat[0], x.stat[1], x.stat[2], {}, {} ]; return a; } ]]> </mx:Script> <mx:LineChart id="waveform" width="80%" height="80%" dataProvider="{getTestData()}"> <mx:horizontalAxis> <mx:CategoryAxis categoryField="@pat_time" title="Patient Time" /> </mx:horizontalAxis> <mx:series> <mx:LineSeries yField="@hr" /> <mx:LineSeries yField="@pao2_alv" /> <mx:LineSeries yField="@pao2_art" /> </mx:series> </mx:LineChart> </mx:Application> From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Ely Greenfield Sent: Thursday, October 05, 2006 12:31 PM To: [email protected] Subject: RE: [flexcoders] How do you represent missing data in a chart? Null causes error Hi Sam. That surprises me. I'm pretty positive you
can use Objects that are missing the appropriate property. I thought XML
nodes missing the attribute would work too. If not, that sounds like a
bug.
Ely.
-- 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
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___ |
- RE: [flexcoders] How do you represent missing data in a cha... Ely Greenfield
- RE: [flexcoders] How do you represent missing data in ... Samuel R. Neff
- RE: [flexcoders] How do you represent missing data in ... Samuel R. Neff

