Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / February 2008



Tip: Looking for answers? Try searching our database.

CFCHART Issue

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dbranch - 29 Feb 2008 07:51 GMT
I am having a problem with CFCHART. My code attached seems to be produce
nothing but a blank flash object.  Even if I add an xAxisTitle or yAxisTitle I
still have a blank canvas. I have seen the data in cfdump and it is correct, so
I am stumped. Can anyone see something I am overlooking?

<cfquery name="chartData" dataSource="xxxxxt">
SELECT count(ID) as dptCount,
        date(Time) AS startYear
FROM log_files
WHERE CustomerID = #Session.CustomerID#
GROUP BY date(Time)
</cfquery>

<cfchart>
<cfchartseries type="bar"
        query="chartData"
        itemColumn="date(Time)"
        valueColumn="dptCount"
        seriesLabel="Output Data"/>
           
</cfchart>
-==cfSearching==- - 29 Feb 2008 07:56 GMT
> itemColumn="date(Time)"

That is not column in your query.  You aliased it AS startYear.  Use the alias.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.