Thanks - worked like a charm

T


On 10/15/07, Dale Fraser <[EMAIL PROTECTED]> wrote:
>
> Just loop over the array
>
> <cfloop index="i" from="1" to="#arrayLen(arrayPerson)#">
>        <cfchartdata item="#arrayPerson[i]#" value="#salesArray[i]#">
> </cfloop>
>
>
> Regards
> Dale Fraser
>
> http://learncf.com
>
> -----Original Message-----
> From: Peter Tanswell [mailto:[EMAIL PROTECTED]
> Sent: Monday, 15 October 2007 9:49 AM
> To: CF-Talk
> Subject: using array data to create a cfchart
>
> Hi there
>
> I have created two arrays which contain the data that I want to report on
> using cfchart.
>
> Basically I have a person name array and a person sales array.  I am
> trying
> to work out how I can use the data in the arrays to produce the cfchart.
>
> Currently I have hard coded the information into the cfchart below, but
> this
> is limiting as this report will run for various retail stores and I dont
> know the sles people from each store.
>
> <cfchart
>       chartwidth="950"
>        chartheight="500"
>        xaxistitle="Sales Staff"
>        yaxistitle="Revenue"
>        show3d="Yes">
> <cfchartseries
>     type="pie"
>     serieslabel="Sales Staff"
>     seriescolor="##ffcc00">
> <cfchartdata item="Alan Ash" value="2387 ">
> <cfchartdata item="Brad Bloom" value="7795">
> <cfchartdata item="Colin Craig" value="2487">
> <cfchartdata item=" Doug Douglas" value="511">
> <cfchartdata item="Ed Edwards" value="1565">
> <cfchartdata item="Frank Farina" value="781">
> </cfchartseries>
> </cfchart>
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291066
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to