I have a cfquery:
<cfquery name="qryYes" datasource="CCSurvey">
select
sum (case when Q1=1 then 1 else 0 end) as Q1Sum,
sum (case when Q2=1 then 1 else 0 end) as Q2Sum,
sum (case when Q3=1 then 1 else 0 end) as Q3Sum,
sum (case when Q4=1 then 1 else 0 end) as Q4Sum,
sum (case when Q5=1 then 1 else 0 end) as Q5Sum,
sum (case when Q6=1 then 1 else 0 end) as Q6Sum,
sum (case when Q7=1 then 1 else 0 end) as Q7Sum,
sum (case when Q8=1 then 1 else 0 end) as Q8Sum,
sum (case when Q9=1 then 1 else 0 end) as Q9Sum,
sum (case when Q10=1 then 1 else 0 end) as Q10Sum,
sum (case when Q11=1 then 1 else 0 end) as Q11Sum,
sum (case when Q12=1 then 1 else 0 end) as Q12Sum,
sum (case when Q13=1 then 1 else 0 end) as Q13Sum,
sum (case when Q14=1 then 1 else 0 end) as Q14Sum,
sum (case when Q14A=1 then 1 else 0 end) as Q14ASum,
sum (case when Q15=1 then 1 else 0 end) as Q15Sum,
sum (case when Q16=1 then 1 else 0 end) as Q16Sum
from SvyContent
</cfquery>
When I draw a line chart, I am having issues with itemcolumn and
valuecolumn because there are multiple columns.
<cfchart xaxistitle="Question"
yaxistitle="Count of Yes"
scaleFrom="0"
gridlines="5"
SHOWXGRIDLINES="NO"
SHOWYGRIDLINES=""
CHARTWIDTH="900"
CHARTHEIGHT="400"
SHOWBORDER="no">
<cfchartseries type="line"
query="qryYes"
itemcolumn=""
valuecolumn="">
</cfchart>
Please let me know how to have itemcolumn and valuecolumn off of the
query above.
Tia,
Daniel
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197770
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54