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


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Purchase Homesite Plus with Dreamweaver from House of Fusion, a Macromedia 
Authorized Affiliate and support the CF community.
http://www.houseoffusion.com/banners/view.cfm?bannerid=55

Message: http://www.houseoffusion.com/lists.cfm/link=i:15:764
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