Re: [flexcoders] Charts with dynamic series

2007-04-12 Thread Tom Chiverton
On Thursday 12 Apr 2007, Ryan Barrett wrote:
> chartData.series contains a collection of series, so just mapping that
> doesn't help.  

Is that not what you want (one graph line for each series in 
chartData.series) ?

-- 
Tom Chiverton
Helping to dramatically supply mission-critical bandwidth
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
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/
 


Re: [flexcoders] Charts with dynamic series

2007-04-12 Thread Ryan Barrett

On 12 Apr 2007 02:44:56 -0700, Tom Chiverton <[EMAIL PROTECTED]>
wrote:


On Thursday 12 Apr 2007, Ryan wrote:

> ChartData [ArrayCollection]
>
>   -  series [ArrayCollection]
>
> - 0 [Array] (array of numbers, for the first year)
> - 1 [Array] (array of numbers, for the second year)
> - ..etc..etc..
>
>   -  axis [ArrayCollection]
> - 0 [Array] (array of strings, these are the labels]
..
> in an ArrayCollection?  I've tried the obvious thing of setting the
> datasource to chartData.getItem(x).

Not chartData.series ?

--
Tom Chiverton
Helping to professionally incentivize seamless content
on: http://thefalken.livejournal.com



chartData.series contains a collection of series, so just mapping that
doesn't help.  I need to specify one of the arrays in chartData.series - i.e.
chartData.series[x]..

--
Ryan


Re: [flexcoders] Charts with dynamic series

2007-04-12 Thread Tom Chiverton
On Thursday 12 Apr 2007, Ryan wrote:

> ChartData [ArrayCollection]
>
>   -  series [ArrayCollection]
>
> - 0 [Array] (array of numbers, for the first year)
> - 1 [Array] (array of numbers, for the second year)
> - ..etc..etc..
>
>   -  axis [ArrayCollection]
> - 0 [Array] (array of strings, these are the labels]
..
> in an ArrayCollection?  I've tried the obvious thing of setting the
> datasource to chartData.getItem(x).

Not chartData.series ?

-- 
Tom Chiverton
Helping to professionally incentivize seamless content
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
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/
 


[flexcoders] Charts with dynamic series

2007-04-12 Thread Ryan
Hi All,

I've been pulling my hair out trying to work out how to do this, sure it's 
pretty easy but I'm finding myself confused :-/

What I'm trying to do is create a line chart with a dynamic number of series.

An example of the chart would be a line chart showing Sales per Month.  I'd 
like to have 1+ series shown, one for each year I send to the chart.  So you 
result in seeing a year-on-year analysis for X number of years.

My data is stored like this:

ChartData [ArrayCollection]

  -  series [ArrayCollection]

- 0 [Array] (array of numbers, for the first year)
- 1 [Array] (array of numbers, for the second year)
- ..etc..etc..

  -  axis [ArrayCollection]
- 0 [Array] (array of strings, these are the labels]

My question is, how do I map the datasource for a LineSeries to an element in 
an ArrayCollection?  I've tried the obvious thing of setting the datasource to 
chartData.getItem(x).

Whatever I do, the result is a chart that doesn't show anything.  So I'm 
obviously doing something really stupid or wrong :-/

Thanks in advance to anyone who can provide some help..

Cheers,
Ryan