[flexcoders] Re: converting a Java object into a chart dataprovider

2009-03-18 Thread netdeep
Right. I'd like to basically return an array of arrays, visually organized like a spread sheet. So the xField might point to column 0 (the first array) and yField to column 1. For then next series, xField would still be column 0 and yField would be column 2, etc. As far as the actual way to

[flexcoders] Re: converting a Java object into a chart dataprovider

2009-03-18 Thread netdeep
In the previous implementation, I would send an ArrayList of custom Objects containing two values each, variables called point1 (an Object) and point2 (a float). So for each series, I'd assign this ArrayList (converted into an ArrayCollection by blazeDS) as the dataProvider for the series and

Re: [flexcoders] Re: converting a Java object into a chart dataprovider

2009-03-18 Thread Wesley Acheson
Assuming Blaze or LiveCycle to create an object that is rendered as an actionscript object with subobjects use a map. Maps are serialised as simple objects. On Wed, Mar 18, 2009 at 3:47 PM, netdeep deep...@chartertn.net wrote: In the previous implementation, I would send an ArrayList of

[flexcoders] Re: converting a Java object into a chart dataprovider

2009-03-18 Thread netdeep
Thanks, that sounds like the way to go. I'll try Maps and see if that works. --- In flexcoders@yahoogroups.com, Wesley Acheson wesley.ache...@... wrote: Assuming Blaze or LiveCycle to create an object that is rendered as an actionscript object with subobjects use a map. Maps are serialised

Re: [flexcoders] Re: converting a Java object into a chart dataprovider

2009-03-18 Thread Josh McDonald
The last poster beat me to it, but yes, the answer is an array of Maps in Java, should come through as a simple assosciative object in ActionScript. -Josh 2009/3/19 netdeep deep...@chartertn.net Thanks, that sounds like the way to go. I'll try Maps and see if that works. --- In

[flexcoders] Re: converting a Java object into a chart dataprovider

2009-03-17 Thread netdeep
I'll be sending Dates, Strings, and floats. --- In flexcoders@yahoogroups.com, Josh McDonald j...@... wrote: What kind of objects are in your array? -Josh 2009/3/17 netdeep deep...@... In the flex documentation, it shows how to easily create a chart with mxml and a static Array:

Re: [flexcoders] Re: converting a Java object into a chart dataprovider

2009-03-17 Thread Josh McDonald
But what will the objects be that you're sending back? You can't make a chart out of a list of numbers, it'd be one-dimensional, not to mention not very useful :) -Josh 2009/3/18 netdeep deep...@chartertn.net I'll be sending Dates, Strings, and floats. --- In flexcoders@yahoogroups.com