<cfchart format="PNG"
xaxistitle="Vehicle"
yaxistitle="Idle time (hrs)"
<!--- title="Idle Report - Graph" --->
chartheight="250"
chartwidth="77600"
show3d="no"
sortxaxis="yes" name="idleChart">
<cfchartseries markerstyle="circle" type="bar"
colorlist="##eb6044, ##F7A145, ##EAED8C, ##8CBA9B, ##4A7F87, ##E3D185,
##6E212E, ##B5463F, ##9EA800, ##ADBBBF, ##595C66, ##9F5C73, ##eb6044,
##F7A145, ##EAED8C, ##8CBA9B, ##4A7F87, ##E3D185, ##6E212E, ##B5463F,
##9EA800, ##ADBBBF, ##595C66, ##9F5C73, ##eb6044, ##F7A145, ##EAED8C,
##8CBA9B, ##4A7F87, ##E3D185, ##6E212E, ##B5463F, ##9EA800, ##ADBBBF,
##595C66, ##9F5C73, ##eb6044, ##F7A145, ##EAED8C, ##8CBA9B, ##4A7F87,
##E3D185, ##6E212E, ##B5463F, ##9EA800, ##ADBBBF, ##595C66, ##9F5C73"
paintstyle="light">
<cfloop
array="#session.fullvehicleArray#" index = o>
<cfif NOT
listFind(arrayToList(session.vehiclesWithNoData), o[1])>
<cfset thisQueryName =
session.data["dataQuery" & o[1]] />
<cfquery
name="getDataForVehicle" dbtype="query">
select
sum(idleSeconds) as totalIdleSeconds
from
thisQueryName
</cfquery>
<cfif
getDataForVehicle.totalIdleSeconds lt 1>
<cfset
request.valueForGraph = 0 />
<cfelse>
<cfset
request.valueForGraph = getDataForVehicle.totalIdleSeconds />
</cfif>
<cfset
request.thisVehicleTotalIdleTime =
numberFormat((request.valueForGraph / 60) / 60 ,'.9')/>
<cfchartdata
item="#o[2]#" value="#request.thisVehicleTotalIdleTime#">
</cfif>
</cfloop>
</cfchartseries>
</cfchart>
-- tony
Better than a thousand hollow words, is one word that brings peace.
-- siddhartha gautama
On Tue, Dec 2, 2008 at 11:27 AM, Shannon Peevey <[EMAIL PROTECTED]> wrote:
> Hi Tony,
> Could you please send code? It would be difficult to troubleshoot without
> seeing how you are inserting the chart.
>
> thanks,
> speeves
>
> On Tue, Dec 2, 2008 at 10:23 AM, Tony <[EMAIL PROTECTED]> wrote:
>
>> hi there.
>>
>> i am having an issue, and ive googled all i can google.
>> i simply cannot get a png chart to show up in a pdf :(
>>
>> i can def give you code, but the facts are, that it all
>> works well and dandy in a browser on a page, but
>> as soon as i try to cfdocument it, and make it a pdf
>> the chart just doesnt show up....
>>
>> any ideas??
>>
>> thanks!
>>
>> -- tony
>>
>> Better than a thousand hollow words, is one word that brings peace.
>> -- siddhartha gautama
>>
>>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316111
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4