Skip to content

Commit

Permalink
Update stats.cfm
Browse files Browse the repository at this point in the history
Added dynamic chart format variable and removed obsolete chart attribute rotated
  • Loading branch information
sneiland committed Mar 25, 2013
1 parent 098c004 commit 921ea55
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions admin/stats.cfm
Expand Up @@ -290,8 +290,8 @@
<cfif cfmx7>
<cfinclude template="stats_pie.cfm">
<cfelse>
<cfchart format="flash" chartWidth="575" chartHeight="575"
rotated="yes" gridLines="#max+1#" show3d="true">
<cfchart format="#application.chartformat#" chartWidth="575" chartHeight="575"
gridLines="#max+1#" show3d="true">
<cfchartseries type="pie" paintStyle="raise" seriesColor="#currentColor#" dataLabelStyle="pattern">
<cfchartdata item="#f#" value="#data.false#">
<cfchartdata item="#t#" value="#data.true#">
Expand All @@ -310,8 +310,8 @@

<cfelse>

<cfchart format="flash" chartWidth="575" chartHeight="575"
rotated="yes" gridlines="#max+1#" scaleFrom="0">
<cfchart format="#application.chartformat#" chartWidth="575" chartHeight="575"
gridlines="#max+1#" scaleFrom="0">
<cfchartseries type="bar" paintStyle="raise" seriesColor="#currentColor#">
<cfif structKeyExists(data,"other")>
<cfchartdata item="Other" value="#data.other#">
Expand Down Expand Up @@ -358,7 +358,7 @@

<cfelse>

<cfchart format="flash" chartWidth="575" chartHeight="575" rotated="yes" show3d=true showLegend=true>
<cfchart format="#application.chartformat#" chartWidth="575" chartHeight="575" show3d=true showLegend=true>
<cfloop list="#sortedItems#" index="item">
<cfset label = data[item].label>
<cfchartseries type="bar" paintStyle="raise" seriesColor="#currentColor#" seriesLabel="#label#">
Expand Down Expand Up @@ -472,4 +472,4 @@

</cfif>

<cfsetting enablecfoutputonly=false>
<cfsetting enablecfoutputonly=false>

0 comments on commit 921ea55

Please sign in to comment.