Question : time duration on cfchart y axis

I am plotting the amount of time it took a group of people to do something.  So the people would be on the X axis and the time value duration would be the Y axis.  My time duration is currently int he format HH:mm:ss, how would I get that to plot on the y-axis as the value?  For some reason cfchart doesn't like this.

The error I get is


Error Occurred While Processing Request
 For input string: "01:03:05"
 


90 : <cfset sec = (Seconds mod 3600) mod 60>
91 : <cfsavecontent variable="TalkTime"><cfif len(hrs) EQ "1">0</cfif>#hrs#:<cfif len(min) EQ "1">0</cfif>#min#:<cfif len(sec) EQ "1">0</cfif>#sec#</cfsavecontent>
92 : <cfchartdata item="#name#" value="#TalkTime#">
93 : </cfoutput>
94 : </cfchartseries>



 
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
<cfchart style="talktime.xml" format="flash" chartheight="500" chartwidth="500" showxgridlines="no" showygridlines="no" showborder="no" fontbold="no" fontitalic="no" labelformat="number" show3d="yes" rotated="yes" sortxaxis="yes" showlegend="no" showmarkers="no" title="Talk Time">
<cfchartseries type="cylinder" serieslabel="Talk Time">
<cfoutput query="GetCalls1">
<cfset hrs = Fix(Seconds / 3600)>
<cfset min = Fix((Seconds mod 3600) / 60)>
<cfset sec = (Seconds mod 3600) mod 60>
<cfsavecontent variable="TalkTime"><cfif len(hrs) EQ "1">0</cfif>#hrs#:<cfif len(min) EQ "1">0</cfif>#min#:<cfif len(sec) EQ "1">0</cfif>#sec#</cfsavecontent>
<cfchartdata item="#name#" value="#TalkTime#">
</cfoutput>
</cfchartseries>
</cfchart>

Answer : time duration on cfchart y axis

Finally found it.  (I couldn't remember where I'd seen this ...)  The charting engine can convert an epoch date (milliseconds).  

http://www.brooks-bilson.com/blogs/rob/index.cfm/2002/9/28/Working-with-Date-Values-on-the-YAxis-in-CFCHART

... But that got me to thinking.  You said the format is HH:mm:ss. Are you only charting a maximum of 24 hours?  Because once you go beyond 23:59:59, then it's not really a true "time" any more...
Random Solutions  
 
programming4us programming4us