/ Published in: ColdFusion
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<cfchart name="statsChart" showborder="yes" format="png" chartheight="400" chartwidth="600" yaxistitle="Unique Users" xaxistitle="Time Period" > <Cfchartseries type="bar" serieslabel="Store #client.store.id#"> <Cfloop query="qryGetStats"> <cfchartdata item="#dateformat(hitdate, 'mm/dd/yy')#" value="#showTotal#"> </Cfloop> </Cfchartseries> </cfchart> <cfset statsChart = imageNew(statsChart)> <cfimage action="writetobrowser" source="#statsChart#" />