This is very close to what I am trying to accomplish, except that
February is showing up twice.  Also, the data point from the first
February entry is showing up in the column for the second February entry
(both February data points are showing up in the second February
column).
 
If this would only show one of the February columns with all of the
February data, it would be perfect!  I've been trying to mold this into
doing just that, but still can't get there.  Do you know how to make it
only show the February column once?
 
Thanks a lot!

________________________________

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Amy
Sent: Tuesday, January 06, 2009 9:20 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: LineSeries dataFunction to return Array
instead of a String



--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "Chad Callahan" 
<chad.calla...@...> wrote:
>
> The specifications for the LineSeries dataFunction states that the
> function is to return an Object. From what I gather, it assumes 
that
> the Object is one single data point. However, my data is grouped a
> little differently. I would like to be able to graph my data to 
look
> like this (this is not a screenshot of an actual Flex chart, just
> something drawn in illustrator):
> 
> http://screencast.com/t/culVkHdhG <http://screencast.com/t/culVkHdhG> 
> 
> My data is in the form of (hopefully this notation is readable - I'm
> just conveying nested arrays and objects):
> 
> [{month:String, numbers:[{date:Date, number:Number}]}]
> 
> This is the only way that I can think of to sort my data in order 
to get
> the desired affect in the above provided image link. The 'number'
> property is the property that I want to create the LineSeries. 
However,
> since the 'number' property is inside of the 'numbers' Array - I 
can't
> figure out how to get this to work because I cannot get the 
LineSeries
> to look at nested properties.
> 
> Any examples or suggestions?

http://flexdiary.blogspot.com/2008/08/charting-example.html
<http://flexdiary.blogspot.com/2008/08/charting-example.html> 

Pay special attention to the dataFunction code.

HTH;

Amy



 

Reply via email to