Please post your solution. 

-----Original Message-----
From: Randy Gaston [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 23, 2005 8:50 PM
To: CF-Newbie
Subject: Re: CFCHART LOOP

Thanks All!!!

Got it working finally!  I am upgrading to MX 7.1, killer graphs!
Just getting used to new attributes, tons of them.

Randy>Randy G wrote:
>
>>I am in the midst of looping through 24 columns in an SQL Database, 
>>each column can have an input from 0 - 10 depending on the users 
>>thoughts about their knowledge level of the subject matter.  As I loop 
>>through I get the same values entered in row 1 across the horizontal 
>>or x axis.  Attached please find code.
>>  
>>
>If you've got 24 columns numbered colname1 to colname24 then you need 
>to reference the query as if it were a struct.
>
><cfchart>
><cfchartseries type="bar">
>    <cfloop index="x" from="1" to="24">
>         <cfchartdata item="#x#" value="#yourqueryname["colname"&x][1]#">
>    </cfloop>
> </cfchartseries>
></cfchart>
>
>Regards
>
>Stephen



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:15:777
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to