What JBoss version ? What problems did you have? Have you used previous JBoss versions with Flex and it worked fine before?

 

-Mika

 


From: digital_eyezed [mailto:[EMAIL PROTECTED]
Sent: 1. huhtikuuta 2005 6:10
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Filling a basic line chart from an array of VO's

 


It's Okay I worked it out.

Turns out that the new release of JBOSS doesn't function very well
with flex 1.5!!!!!!!!!!!!! I kept getting memory errors and property
value errors.

I installed Tomcat 4.1 and voila:


<mx:Panel width="100%">
<mx:ColumnChart id="chart" dataProvider="{vos.getTestVOs.result}"
width="100%" height="100%" showDataTips="true" >
      <mx:horizontalAxis>
        <mx:CategoryAxis dataProvider="{vos.getTestVOs.result}"
categoryField="name" />
    </mx:horizontalAxis>
      <mx:series>
            <mx:Array>
                <mx:LineSeries yField="today" name="Today" />
                <mx:LineSeries yField="total" name="Total"/>
            </mx:Array>
        </mx:series>
</mx:ColumnChart>
</mx:Panel>

Easy as that!

Cheers


--- In flexcoders@yahoogroups.com, "digital_eyezed"
<[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Whats the easiest way to fill a basic line chart from an array of
> value objects passed back from a remoteobject call?
>
> The array contains value objects which themselves contain a String
> (for the label) and two numeric values. Do I have to rip through
the
> array and fill an xml model?
>
> The same data also fills a data grid which works fine:
>
> <mx:DataGrid id="myDataGrid"
dataProvider="{remote.getData.result}"
> width="100%">
> <mx:columns>
>     <mx:Array>
>           <mx:DataGridColumn columnName="name" headerText="Name" />
>           <mx:DataGridColumn columnName="total" headerText="Total" />
>           <mx:DataGridColumn columnName="today" headerText="Today" />
>     </mx:Array>
> </mx:columns>
>
> Thanks in advance.
>
>
> </mx:DataGrid>






Yahoo! Groups Links

Reply via email to