It appears to be a runtime error:
Error: Unknown Property: 'lag'.
at
mx.collections::ListCollectionView/http://www.adobe.com/2006/actionscript/flash/proxy::getProperty()
at
mx.utils::ObjectProxy/http://www.adobe.com/2006/actionscript/flash/proxy::getProperty()
at
mx.charts.chartClasses::Series/mx.charts.chartClasses:Series::cacheDefaultValues()
at
mx.charts.series::LineSeries/mx.charts.series:LineSeries::updateData()
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()
--- In [email protected], "Ely Greenfield" <[EMAIL PROTECTED]> wrote:
>
>
>
> THis is a compiletime error, or runtime error?
>
> Ely.
>
>
> ________________________________
>
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of dataknife
> Sent: Wednesday, November 01, 2006 12:39 PM
> To: [email protected]
> Subject: [flexcoders] XML charting troubles
>
>
>
> All, I'm a Flex Newbie - coming from the Java world (nice to not have
> to use JSP's any more!).. I'm having a problem with of a basic XML to
> Chart nature: I can't get it to work! I've followed the example in the
> help- I just seem to be missing a detail..
>
> The XML output from my server looks like this:
> <?xml version="1.0" encoding="UTF-8"?>
> <healthcheck site="SLFTEST" date="Wed Nov 01 12:10:38 PST 2006">
> <lagdataset>
> <lagdata><date>10-24-2006 19:00</date><lag>13.860</lag></lagdata>
> <lagdata><date>10-25-2006 12:00</date><lag>12.110</lag></lagdata>
> <lagdata><date>10-25-2006 19:00</date><lag>15.800</lag></lagdata>
> </lagdataset>
> </healthcheck>
>
> The MXML looks like this:
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml
> <http://www.adobe.com/2006/mxml> "
> layout="absolute" creationComplete="feedRequest.send()">
>
> <mx:HTTPService
> id="feedRequest"
>
> url="http://localhost:8080/HealthCheckServer/xmlOutput.do?site=SLFTEST
> <http://localhost:8080/HealthCheckServer/xmlOutput.do?site=SLFTEST> "
> useProxy="false"
> showBusyCursor="true"/>
>
> <mx:Model id="data" >
> {feedRequest.result.healthcheck.lagdataset.lagdata}
> </mx:Model>
>
> <mx:Panel x="10" y="10" width="711" height="594" layout="absolute">
> <mx:TabNavigator x="10" y="10" width="671" height="544"
> visible="true" styleName="myTabs">
> <mx:Panel id="syshealth" label="System Health" width="100%"
> height="100%">
> <mx:VDividedBox height="50%" width="646">
> <mx:HDividedBox width="100%">
> <mx:VBox height="100%">
> <mx:LineChart id="txnLag" dataProvider="{data}" width="316"
> height="154" showDataTips="true">
> <mx:toolTip>Transaction Lag is the difference between the
> Creation and Processing times for a Transaction</mx:toolTip>
> <mx:horizontalAxis>
> <mx:CategoryAxis dataProvider="{data}"
> categoryField="date"/>
> </mx:horizontalAxis>
> <mx:series>
> <mx:LineSeries displayName="Lag" yField="lag" />
>
> </mx:series>
> </mx:LineChart>
>
> </mx:VBox>
> </mx:HDividedBox>
> </mx:VDividedBox>
>
> </mx:Panel>
> <mx:Panel id="afcinfo" label="AFC Information" width="100%"
> height="100%">
> </mx:Panel>
> </mx:TabNavigator>
> </mx:Panel>
>
> </mx:Application>
>
> When I run the MXML, it complains about a missing element lag...
>
> Can someone spare some time to help me?
>
> SF
>
--
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
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/