Copy link to clipboard
Copied
hello all, i did a search on this but found nothing
i am running ubuntu 10.04
railo 3.2.3 final
tomcat
mysql
Anyway, I am trying to figure out if this is a coldfusion vs server type error
I am trying to create a line chart. I try to fill up cfchart series from some items I am pulling from my database. When I do this, the following message is shown: Band count exceeds non-unity number of constants.
When I restrict it to just one single item in the cfchartseries, it still gives the same message. How does one properly use the cfchart?
Copy link to clipboard
Copied
any help? i can post the offending code if needed...
Copy link to clipboard
Copied
You are probably not getting much of a response because this forum is for Adobe ColdFusion questions. The best place for Railo specific questions is their mailing list
http://groups.google.com/group/railo
-Leigh
Copy link to clipboard
Copied
Code would help.
It almost sounds like a divide by zero??? Have you dumpded the queries
to ensure you have data for both axis'?
Lyndon Patton
iPhone
Copy link to clipboard
Copied
<cfinclude template="Application.cfm">
<cfinclude template="header.cfm">
<cfset userEntries = functionsObj.getNumUserEntries(session.user_id)>
<cfif userEntries GTE 8>
<cfoutput>
<cfchart format = "png" showborder="yes" chartheight="300" chartwidth="400"
yaxistitle="Estimated strength for day" xaxistitle="day">
<cfloop index="i" from="1" to="4">
<cfset lift = functionsObj.getCoreLiftsForDay(i)>
<cfchartseries type="line" serieslabel="#functionsObj.getLiftNameFromId(i)#">
<cfloop query="lift">
<cfif WAVE NEQ 4>
<cfchartdata item="C#CYCLE#W#WAVE#" value="#functionsObj.findMax(WEIGHT3,REPS,i)#">
</cfif>
</cfloop>
</cfchartseries>
</cfloop>
</cfchart>
</cfoutput>
<cfelse>
You must log some more information before statistics can be gathered.
</cfif>
<cfinclude template="footer.cfm">
------
One thing that has changed: I put in format="png" and now I no longer get the error, the page displays but with a broken image where the chart should be.
There is no divide by zero going on, I have verified this.
Copy link to clipboard
Copied
Well this is getting over my head...
That said, two observations:
Why are you including application.cfm?it should load automatically and
this cfinclude would run it twice.
If it's running fine on other browsers it's not likely the problem is
not likely with your use of tags.
If I were you I'd pose the question an the advanced forum instead of
getting started. And emphisise the browser platform issue. Also try tek-tips.com
Much luck
Lyndon Patton
405-301-0952
www.ohrc.org
iPhone