cfchart help
I need to graph on y-axsis (Day 1-Day31 of month) on the x-axsis the code of metrics...and their progresses...
Lets say, a metric called "AHT" has the max data till 14 th of the month so the graph bar will be till 14th of the month...
Any help appreciated....
<cfquery name="GetChartData" datasource="#application.DSN_ORC#">
SELECT MAX( s.end_date ) AS enddate, m.sc_metric_code as metriccode
FROM ops$rms.resource_score s, ops$rms.ref_metric m
WHERE s.metric_code = m.metric_code
AND EXTRACT( MONTH FROM s.end_date ) = '#Form.Month#'
AND EXTRACT( YEAR FROM s.end_date ) = '#Form.Year#'
GROUP BY s.end_date, m.sc_metric_code
</cfquery>
<cfchart
format="png"
xaxistitle="Progress"
yaxistitle="Date"
chartheight="400"
chartwidth="700"
foregroundcolor="FFFAFA"
backgroundcolor="BC8F8F"
fontbold="yes"
show3d="yes"
databackgroundcolor="DDA0DD"
font="Verdana"
fontsize="13"
showxgridlines="no"
showygridlines="yes"
labelformat="date"
>
<cfchartseries
type="bar"
seriescolor="8B4513"
paintstyle="light" query="GetChartData" itemcolumn="metriccode" valuecolumn="EndDate"
>
</cfchartseries>
</cfchart>
