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";
layout="absolute" creationComplete="feedRequest.send()">

<mx:HTTPService 
    id="feedRequest" 
   
url="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/
 

Reply via email to