root/trunk/website/soundings/admin/stats_matrix.cfm @ 5

Revision 5, 0.9 kB (checked in by DanWilson, 17 years ago)

Initial Commit Of ModelGlue? Website (upgrade to blogcfc 511)

Line 
1<!---
2        Name         : C:\projects\soundings\wwwroot\soundings\admin\stats_matrix.cfm
3        Author       : Raymond Camden
4        Created      : 03/02/06
5        Last Updated :
6        History      :
7--->
8
9
10<cfchart format="flash" chartWidth="575" chartHeight="575" rotated="yes" show3d=true showLegend=true style="style.xml">
11<cfloop list="#sortedItems#" index="item">
12        <cfset label = data[item].label>                                                       
13                <cfchartseries type="bar" paintStyle="raise" seriesColor="#currentColor#" seriesLabel="#label#">
14                        <cfloop list="#sortedAnswers#" index="v">
15                                <cfif v is not "label">
16                                        <cfchartdata item="#data[item][v].label#" value="#data[item][v].count#">
17                                </cfif>
18                        </cfloop>
19                </cfchartseries>
20                <cfset currentColorIndex = currentColorIndex + 1>
21                <cfif currentColorIndex gt listLen(colorList)>
22                        <cfset currentColorIndex = 1>
23                </cfif>
24                <cfset currentColor = listGetAt(colorList, currentColorIndex)>
25</cfloop>
26</cfchart>
27                                               
Note: See TracBrowser for help on using the browser.