DrumAt5280
Technical User
I have a real estate listing site where i would like show the past week hit-counter stats for a given page.
I want to not only display how many hits have happen to the given page in total, but i also want to show how many hits have happen for each day for the past week.
So i started setting up my Stats DB table and named the columns:
- pageName
- today
- minus1FromToday
- minus2FromToday
- minus3FromToday
- minus4FromToday
- minus5FromToday
- minus6FromToday
- totalHits
Then i started setting up the CFchart tag:
<cfchart chartwidth="400" chartheight="275">
<cfchartseries type="bar" query="GetHits" column="pageName" itemcolumn="today">
</cfchart>
Then i noticed the problem - the CFchart only accepts info from columns and not from rows - if you know what i mean.
My question: how do i set up the CFchart or set up the DB table so i can display multiple columns for each day of the week?
I want to not only display how many hits have happen to the given page in total, but i also want to show how many hits have happen for each day for the past week.
So i started setting up my Stats DB table and named the columns:
- pageName
- today
- minus1FromToday
- minus2FromToday
- minus3FromToday
- minus4FromToday
- minus5FromToday
- minus6FromToday
- totalHits
Then i started setting up the CFchart tag:
<cfchart chartwidth="400" chartheight="275">
<cfchartseries type="bar" query="GetHits" column="pageName" itemcolumn="today">
</cfchart>
Then i noticed the problem - the CFchart only accepts info from columns and not from rows - if you know what i mean.
My question: how do i set up the CFchart or set up the DB table so i can display multiple columns for each day of the week?